Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Deg

Moving CoIn to a new location problem

Recommended Posts

Hi all , Im trying to have it so when the player drives a Ural Civil named "truck" to a new location the CoIn will move to that location when the player gets out of the truck so i tried putting this in the trucks init line

truck addEventHandler ["GetOut", {myCoin setPos (position _this)}];

but i get an error when i get out of the truck, error position: Type Array,expected Object,Location could someone please tell me what im doing wrong.:confused: Thanks

Deg

Share this post


Link to post
Share on other sites

Try this:

truck addEventHandler ["GetOut", {myCoin setPos getPos (_this select 0)}];

Edited by kylania

Share this post


Link to post
Share on other sites

Awsome that did the trick, thank you :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×