Home   Help Search Login Register  

Author Topic: 2 actions  (Read 392 times)

0 Members and 1 Guest are viewing this topic.

Mr.Cool

  • Guest
2 actions
« on: 19 Aug 2004, 01:21:56 »
How do I make it so I can put 2 actions in the init field of a person???? this may sound like one from the FAQ but I think mine is different. I already tried the command and to separte the 2 actions but ther must be something else to make it work.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:2 actions
« Reply #1 on: 19 Aug 2004, 01:25:52 »
put 2 actions in init ?

u mean by puttin ; between em ?

like

this addaction ["somin","watever.sqs"]; this addaction....

?

thats faq stuff :P

or do u mean somin else ?

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Roni

  • Members
  • *
  • Play the Game !
Re:2 actions
« Reply #2 on: 19 Aug 2004, 04:31:34 »
Yep - that should do it - note the semicolon - very important !  ;D


You could also write a little script that did all the work for you in one step.  All you'd have to do is put the one script on the player's Init field, something like this -

[this] exec "playerInit.sqs"

Then in playerInit.sqs you put things like addweapons, remove weapons, addactions etc.  Easy as.

And if you're playing with respawn you just have the script wait until the player dies, then remove all the actions from his corpse, then after he's alive again add them all to his new incarnation.

Attached is an example that I use with most of my missions.  Use, abuse or discard as you see fit.

Cheers



Roni