Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Check if Player is mounted to a vehicle *SOLVED*
« previous
next »
Print
Pages: [
1
]
Author
Topic: Check if Player is mounted to a vehicle *SOLVED* (Read 1273 times)
Swollow
January 27, 2012, 11:41:03 PM
How would I check this?
«
Last Edit: January 28, 2012, 08:03:32 PM by swollow
»
Ad Bot
Advertisement
Swollow
January 28, 2012, 01:06:58 PM
or better yet is a function called when you enter a vehicle?
Wordy
January 28, 2012, 04:35:02 PM
i am unsure, but would it be
Code:
[Select]
if(%cl.isMounted)
?
Nexus
January 28, 2012, 04:37:51 PM
%client.player.getmountobject() I do believe
CityRPG
January 28, 2012, 06:39:25 PM
Quote from: Nexus on January 28, 2012, 04:37:51 PM
%client.player.getmountobject() I do believe
Correct.
Always test isObject(), though. If the function were to return
-1
, it would still pass as
true
.
if(isObject(%player.getMountObject()))
Swollow
January 28, 2012, 08:03:46 PM
thanks iban and nexus
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Check if Player is mounted to a vehicle *SOLVED*