Home   Help Search Login Register  

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

0 Members and 2 Guests 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