Jump to content
Sign in to follow this  
MilitiaSniper

PT Trigger

Recommended Posts

unitname playmove "FXStandDip"

Unit will do 3 push-ups. Note that playmove and switchmove won't work from the init line.

Share this post


Link to post
Share on other sites
unitname playmove "FXStandDip"

Unit will do 3 push-ups. Note that playmove and switchmove won't work from the init line.

Then what do you recommend I do to get it to work?

Sincerely, MilitiaSniper

PS. Thank You..! For your help!

Share this post


Link to post
Share on other sites
Script... whistle.gif

I can't remember how to make a script, nor execute the darn thing! Would you mind helping me?

Sincerely, MilitiaSniper

Share this post


Link to post
Share on other sites

You could also just use a waypoint or a trigger.

Script is a text file with extension .sqs. Create it with Notepadâ„¢ or compatible and save it as scriptname.sqs in the mission directory (ofp/users/playername/missions/missionname.island/). Execute script with the command: [] exec "scriptname.sqs"

You can put variables or parameters in the array to be passed on to the script. Like ["Shell120",getpos player,100,1] exec "bomb.sqs"

Share this post


Link to post
Share on other sites
Quote[/b] ]

_unit = _this select 0

_unit playmove "fxstanddip"

exit

Name it as you want ("anim.sqs" for example), with sqs extension, put it in the mission file and launch it for example in the init line of the unit :

[this] exec "anim.sqs"

Share this post


Link to post
Share on other sites

It said it can find the script!

It's in my users name/mission/mission name folder.

I named it, "pushup.sqs."

Sincerely, MilitiaSniper

Share this post


Link to post
Share on other sites

My guess is that your file is named pushup.sqs.txt. I would recommend disabling the option to hide file extensions on known file type. I can be done by opening the folder and then:

tools->folder options->show?

then uncheck hide extensions for known file types.

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  

×