Blockland Forums > Modification Help

Check if Player is mounted to a vehicle *SOLVED*

Pages: (1/2) > >>

Swollow:

How would I check this?

Swollow:

or better yet is a function called when you enter a vehicle?

Wordy:

i am unsure, but would it be
--- Code: --- if(%cl.isMounted)
--- End code ---
?

Nexus:

%client.player.getmountobject() I do believe

CityRPG:


--- Quote from: Nexus on January 28, 2012, 04:37:51 PM ---%client.player.getmountobject() I do believe

--- End quote ---
Correct.

Always test isObject(), though. If the function were to return -1, it would still pass as true.

if(isObject(%player.getMountObject()))

Pages: (1/2) > >>

Go to full version