OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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 ;)
-
err, it sounds really cool already ;) ;D but where do I put the [firename] exec "inflame.sqs" thingie
-
for example in the fire's initialization field, but any activation field will do.
-
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 ;)
-
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"
-
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"
-
HAHAHAHAHHH yeah I got it now, whha. That is the most annoying script ever :D thnx artak :P