Home   Help Search Login Register  

Author Topic: Removing Actions?  (Read 403 times)

0 Members and 1 Guest are viewing this topic.

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Removing Actions?
« on: 21 Mar 2004, 01:27:36 »
Okay, here's a tough one. How can i make it so that it is impossible for a fire to be lit by the action "Light Fire", but it can only be lit by a trigger?

Alternatively, is it possible to make it so when an object (f1) is destroyed, the fire actually shows up, as though it were not there before?
Hey kid, wanna see a dead body!?

Kaliyuga

  • Guest
Re:Removing Actions?
« Reply #1 on: 21 Mar 2004, 10:27:39 »
you can detect if the fire is lit with a trigger and then make it go out...

condition: fire inflamed true and fireoff=false
activation: fire inflame false


and then for your trigger to light it .. you could make fireoff=true
and then use      fire inflame true

as far as fire showing up after something is destroyed.. you can use another trigger..

condition: vehicle getdammage > .8
activation:  fire1 setpos [getpos vehicle select 0, getpos vehicle select 1,0]; fire1 inflame true

to warp the fire to the vehicle when the vehicle is more than 80% damaged..

:cheers:
 



Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Re:Removing Actions?
« Reply #2 on: 21 Mar 2004, 17:07:41 »
Hmm, i tried all those triggers but I get some errors

Quote
condition: fire inflamed true and fireoff=false
activation: fire inflame false
For this trigger I get the error
Unknown Operator Inflamed
so i changed it to Inflame and i got the error
Unknown Operator (and it highlighted fireoff)

 :-\

It also told me that getdammage was not a known operator...
Hey kid, wanna see a dead body!?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Removing Actions?
« Reply #3 on: 21 Mar 2004, 19:19:52 »
Try :

Condition:  inflamed nameyougaveyourfire

Activation: nameyougaveyourfire inflame false

Really you should check the syntax of all replies you get in the command reference.

Hope that works.

Planck
I know a little about a lot, and a lot about a little.

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Re:Removing Actions?
« Reply #4 on: 21 Mar 2004, 19:31:30 »
Yippee!

Thanks for that Planck, and thanks for the advice, i'll do that from now on

Problem Solved!  8)
Hey kid, wanna see a dead body!?