Home   Help Search Login Register  

Author Topic: removeaction  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

Flapje

  • Guest
removeaction
« 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
« Last Edit: 18 Mar 2003, 19:43:37 by Flapje »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:removeaction
« Reply #1 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  ;)
Not all is lost.

Flapje

  • Guest
Re:removeaction
« Reply #2 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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:removeaction
« Reply #3 on: 18 Mar 2003, 20:08:06 »
for example in the fire's initialization field, but any activation field will do.
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:removeaction
« Reply #4 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 ;)

Flapje

  • Guest
Re:removeaction
« Reply #5 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"

« Last Edit: 18 Mar 2003, 20:18:40 by Flapje »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:removeaction
« Reply #6 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"
« Last Edit: 18 Mar 2003, 20:19:51 by Artak »
Not all is lost.

Flapje

  • Guest
Re:removeaction
« Reply #7 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