Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: New Commands Syntax and Comref....  (Read 1128 times)

0 Members and 1 Guest are viewing this topic.

Nasty Buttler

  • Guest
New Commands Syntax and Comref....
« on: 15 Oct 2002, 02:35:57 »
any ideas???

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:New Commands Syntax and Comref....
« Reply #1 on: 15 Oct 2002, 05:44:09 »
well the event handler is pretty easy,

this AddEventHandler ["event", "actiontotake"]

so it works like ths

this AddEventHandler ["hit", "hint {I'm hit}"]

the other events are

Killed
Hit
Dammaged
GetIn
GetOut
Init
Engine
Gear
Fuel
Fired
IncomingMissile

and you can use {} instead of " " for strings now, setvelocity is weird, I can't get things to move where I want yet

vehiclename setVelocity [1000,10,10]

[edit]

it looks like Chomps has figured out setvelocity here.
« Last Edit: 15 Oct 2002, 06:33:48 by Black_Feather »

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:New Commands Syntax and Comref....
« Reply #2 on: 15 Oct 2002, 06:04:00 »
and you can removeeventhandler like this

player removeEventHandler ["event",0]

I don't know what the 0 does but it doesn't work with a 1

Kaliyuga

  • Guest
Re:New Commands Syntax and Comref....
« Reply #3 on: 15 Oct 2002, 07:05:46 »
 How about  the new setvelocity command

it's a pretty fun one to fool around with too