Home   Help Search Login Register  

Author Topic: basic command  (Read 552 times)

0 Members and 1 Guest are viewing this topic.

Ricardo

  • Guest
basic command
« on: 26 Dec 2002, 22:43:59 »
what's the command to make a unit sit down? :-[
what's the command to make a m2 machinegun start on the top of a guard tower? i've tryed something like:
this setpos [getpos this select 0, getpos this select 1, getpos (this select 2)+ 5.1]---->this used to work in old versions i think....but does it with 1.91 (Resistance)??
Is there a list of this types of commands?
« Last Edit: 26 Dec 2002, 22:49:35 by Ricardo »

Kaliyuga

  • Guest
Re:basic command
« Reply #1 on: 26 Dec 2002, 23:47:40 »
 Hmm.. this syntax works fine for raising objects....


this setpos [getpos this select 0, getpos this select 1,x]  

where x = meters above ground

I've seen all other sorts of code to accomplish the exact same thing... but K.I.S.S.  right? ;) ;D

As far as the sitting down part... use this syntax

unitName action ["actionType"]

the proper actiontype is:    SITDOWN

   And.. yeah.. there are several command references that are out that detail all the commands available...    I know there is one on the official site... and I'm pretty sure there is at least one here at OFPEC in the ed depot...  

Just like everything else.... try and find a copy of an unofficial one.....   everything unofficial is just sooooo much better ;D  
lol  

Kaliyuga out
:cheers: :dude:

Ricardo

  • Guest
Re:basic command
« Reply #2 on: 26 Dec 2002, 23:54:37 »
tkx friend!!!
"everything unofficial is just sooooo much better"--> You're right about that!