Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Finding driver?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Finding driver? (Read 586 times)
Falcondude
May 18, 2008, 07:40:40 AM
How do you find the driver of a vehicle? Is lastDrivingClient the best way?
Ad Bot
Advertisement
Ephialtes
May 18, 2008, 07:55:14 AM
No, the driving client is always mounted to slot 0 I think. So you should be able to do:
Code:
[Select]
if(isObject(%vehicle.getMountNodeObject(0).client))
{
%driver = %vehicle.getMountNodeObject(0);
}
Falcondude
May 18, 2008, 08:10:39 AM
Right, makes sense. Thanks!
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Finding driver?