Home   Help Search Login Register  

Author Topic: creating smoke  (Read 821 times)

0 Members and 3 Guests are viewing this topic.

Offline 456820

  • Contributing Member
  • **
creating smoke
« on: 06 Jul 2005, 18:26:11 »
okay EDIT -
and new question
_smk2 = "SmokeShellRed" CamCreate setpos getpos a2

why doesnt that work aparentally getpos is an invalid command ??
« Last Edit: 06 Jul 2005, 19:59:58 by 456820 »

CopyrightPhilly

  • Guest
Re:change all side combat mode
« Reply #1 on: 06 Jul 2005, 19:29:13 »
make a trigger

Quote
actiavted by:
east

activation filed:
"_x setCombatMode {RED}" foreach thislist

that 'should' work, didnt test it tho...

cheers,
Phil

Offline 456820

  • Contributing Member
  • **
Re:change all side combat mode
« Reply #2 on: 06 Jul 2005, 19:59:30 »
thanks alot that looks right to me but havent tested that was something along those lines that i expected and since i dont want to take up alod of space on the boards ive got another question wich ill edit the topic name and edit first post the question is

_smk2 = "SmokeShellRed" CamCreate setpos getpos a2

why doesnt that work aparentally getpos is an invalid command ??

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:creating smoke
« Reply #3 on: 06 Jul 2005, 20:22:32 »
Because you've got the syntax wrong. Camcreate is supposed to look like this:

"obj" camcreate [position]

You are trying to do this:

"obj" camcreate setpos [position]

So just remove the "setpos" and it should work fine. Also, if you are running this command from a trigger, then you can't use a local variable (_smk2).
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:creating smoke
« Reply #4 on: 07 Jul 2005, 00:32:33 »
well tecnically you could, and it would be local to the trigger, so you could add something else into the trigger affecting the smokeshell..... ;D :P ::)

just wanted to say that, but listen to GB cause he's right for just about anything and everything you would want to do with it

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:creating smoke
« Reply #5 on: 07 Jul 2005, 00:39:36 »
well tecnically you could, and it would be local to the trigger, so you could add something else into the trigger affecting the smokeshell..... ;D :P ::)
Nope  ;D. Try it--OFP will spit an error message at you and won't let you close the trigger.  ;)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:creating smoke
« Reply #6 on: 07 Jul 2005, 04:21:47 »
hmm... i coulda sworn it worked for me a while back when i was just screwing around in the editor... :-\

Offline 456820

  • Contributing Member
  • **
Re:creating smoke
« Reply #7 on: 07 Jul 2005, 16:14:24 »
okay thanks alot but im trying to create it in a trigger with about a 2 by 2 radius so when the player runs over certain area detected by trigger it runs a script wich gives a 50 50 chance of
a) creating smoke and setting everyone to combat
b) creating 2 explosions one either side of the player thus killing him

ill have a go with that and replace the trigger with a marker or gl
thanks