Jump to content
Sign in to follow this  
TheRedBaron

Command refrences

Recommended Posts

I downloaded the command refrence booklet for ofpec but can not get them to work.

here are some things I have tryed but dont work.

trying to get guy(jim) to say he is low on ammo

? jimammo <= 10: jim globalchat "I need more ammo"

                                  or...

to find the distance I used

"jim" distance "bob"

if this makes no sense then help me figure it out please.

Oh and wich line do i put it in (activation, deactivation,etc)thanks.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">? jimammo <= 10: jim globalchat "I need more ammo"

<span id='postcolor'>

Dont put these in all in the activation line.

Trigger

in Conditions: jimammo <= 10

Activation: jim globalchat "I need more ammo God dammit"

that line i quoted is for script purposes.

the way i explained is for triggers wink.gif

so if a line has a : it means that the line before the : is a condition and after is a Activation/deactivation command.

Distance dont use Quotes wink.gif

condition: Bob getdistance jim

activation hint format["%1 is %2m from %3",Name Bob,Name distance,name jim]

this will display BOB IS 100m from BOB

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  

×