Jump to content
Sign in to follow this  
csj

switchmove trouble (I think)

Recommended Posts

I have made animations for Driver and Cargo of Vehicle.

The Driver actually has 2 animation 'Action1' and 'Action2'

Action1 is when the driver gets in, usual stuff.

Action2 is performed by the Driver when vehicle is moving.

When the vehicle stops Driver goes back to Action1.

There are no problems with these actions they work fine.

The Driver will switch to and from the Actions over and over again.

The problem is when the Driver gets out of the Vehicle

he ends up just a messy shadow on the ground with no action menu available.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#loop

_vehicle = _this select 0

_driver = (driver _vehicle)

?(count units _driver)==0: exit

_vehicleSpd = (speed _vehicle)

?_vehicleSpd > .5 : goto "performAction2"

?_vehicleSpd < -.5 : goto "performAction2"

~1

_driver switchMove "Action1"

goto "loop"

#performAction2

_driver switchMove "Action2"

~1

goto "loop"

Can somebody plz assist me with this.

Very small addon so if you need it sent to you to view-

can do no problem.

Share this post


Link to post
Share on other sites

woohoo yay.gif Yes Yes I worked it out yay.gif

and would like to thank all of thoes above  icon_rolleyes.gif for your input   tounge2.gif

Ok, I am over it. smile_o.gif

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  

×