Jump to content
Sign in to follow this  
bull_a

AddAction to simpleObject

Recommended Posts

Hi all,

 

has anyone been able to successfully execute an addAction command on a simpleObject. The action ID is always returning as -1 indicating the action has not been added.

_simpleVeh = createSimpleObject ["\a3\weapons_F\ammo\mag_univ.p3d",(getPosWorld player)];

_actionID = _simpleVeh addAction ["Some action name", {hint "You picked it"}];
systemChat str _actionID; // always displays -1

I'm unsure as to why this is happening, maybe something to do with the simulation?!

 

 

Thanks,

Bull

Share this post


Link to post
Share on other sites

It seems that simple objects cannot have actions attached to them.

Share this post


Link to post
Share on other sites

Variables cannot be set on simple objects as well. I guess these are the draw backs of having low network traffic models.

Share this post


Link to post
Share on other sites

Add the action to the player with the condition being the distance between him and the simple object.

Alternatively, create a small or invisible object inside it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×