OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flapje on 18 Mar 2003, 19:41:56

Title: removeaction
Post by: Flapje on 18 Mar 2003, 19:41:56
I need to remove the action at a fire. When you walk to a fire that's burning you get an action "Put out fire", but it's really stupid if the player does that in my mission, so I wanna remove it. when I looked at the tutorials I found uiox's example, but it's just a mission with titletext and it had some bad spelling in it. Sry uiox  ;) Then I looked at what he'd done, but I just saw all those ='s and ,'s and I didn't really understand a thing hehe   ::)
So, does anybody know a way how to disable the "Put out fire" action?

hope you can help me
Title: Re:removeaction
Post by: Artak on 18 Mar 2003, 19:56:10
instead of removing the action, make an annoying little script that will drive the player nuts  :D

;[firename] exec "inflame.sqs"

_fire = _this select 0

#loop
?!(inflamed _fire): _fire inflame true
~5
goto "loop"



that'll teach him not to put out the fire  ;)
Title: Re:removeaction
Post by: Flapje on 18 Mar 2003, 20:01:34
err, it sounds really cool already  ;) ;D but where do I put the [firename] exec "inflame.sqs" thingie
Title: Re:removeaction
Post by: Artak on 18 Mar 2003, 20:08:06
for example in the fire's initialization field, but any activation field will do.
Title: Re:removeaction
Post by: dmakatra on 18 Mar 2003, 20:10:13
Why not use a loop script and make a guy always turn the light on when the player put it out. A bit more realistic than Artaks ;)
Title: Re:removeaction
Post by: Flapje on 18 Mar 2003, 20:16:54
omg sry but I still havent got it  :-[ I get an error like this: _fire = _this select 0 '|#|' Type Object, expected Array'

I put in the fire1's activation field: this exec "inflame.sqs"

Title: Re:removeaction
Post by: Artak on 18 Mar 2003, 20:17:34
there's always some spark in there left to light up the fire again  :P ;)

Simple is beutiful!  ;D

Nah but really if you want it good you do it like you first planned or like Armstrong there suggested.
Mine was just a stupid joke  ;)

[edit]

nooo no no no. You put in  [firename] exec "inflame.sqs"
Title: Re:removeaction
Post by: Flapje on 18 Mar 2003, 20:23:04
HAHAHAHAHHH yeah I got it now, whha. That is the most annoying script ever  :D thnx artak  :P