Home   Help Search Login Register  

Author Topic: How to lock campfire?  (Read 1549 times)

0 Members and 1 Guest are viewing this topic.

jkivivuori

  • Guest
How to lock campfire?
« on: 30 Jan 2004, 12:00:32 »
Hello to all!  ;)

I have this simple(?) question:
How I can "lock" campfire (init: this inflame true) so that no one canÂ't "turn it off".

Any working ideas?

Cheers!  ;D

HL
 

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to lock campfire?
« Reply #1 on: 30 Jan 2004, 12:08:03 »
Not sure, but what you can do is have an annoying little looping script

#loop
~3
inflamed fire1: goto "loop"
fire1 inflame true
goto "loop"
exit

That's just a sketch, you'll probably need to play with it to make it work.  The point is that you can turn the fire off, but 3 seconds later it will come back on again.
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:How to lock campfire?
« Reply #2 on: 30 Jan 2004, 12:38:24 »
Or if you're unfamiliar with sqs files you can set a trigger to go off repeatedly with axis 0,0. condition would be !(inflamed fire1) and on activation would be fire1 inflame true
Not all is lost.

Dubieman

  • Guest
Re:How to lock campfire?
« Reply #3 on: 30 Jan 2004, 20:50:18 »
Why are we locking a campfire now?
How about a script with a grenade thrown in so if you turn it off, a grendae pops up and boom. Then 3 secs later, the fire turns back on.

I'd imagine that Macguba's script there could be messed around with to do that, not being good at scripting, I think it uses

camcreate "grenade" [0,0,1]

 ??? ??? :-\

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:How to lock campfire?
« Reply #4 on: 30 Jan 2004, 20:55:44 »
#loop
~3
inflamed fire1: goto "loop"
_whatastupidassidea = "grenade" camcreate getpos fire1
fire1 inflame true
goto "loop"
exit

the line would look something like that.
Not all is lost.

Dubieman

  • Guest
Re:How to lock campfire?
« Reply #5 on: 30 Jan 2004, 21:15:33 »
Stupid ass idea, how about a multiplayer deathmatch where open door, fire on, get in jeep commands ended up with a grenade in there face! ;D

Not good for SP though, but once again, why are we locking fires? In SP AI don't just randomly go around turning fires off and getting in jeeps to chill for a few, I mean YOU have the choice to do stuff. Its not like you spend 15 minutes deciding whether or not if I turn that fire off, will that affect my tactical position, will others think of me as not cool?

Again, WHY? WHY? :)

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:How to lock campfire?
« Reply #6 on: 30 Jan 2004, 22:05:14 »
Maybe it's very important in the mission, it's absolutley not a dumbass question. Some Qs are, but not this.

Also, Artak's trigger thingy would work best.

:beat: *Gets Shot* :beat:

Dubieman

  • Guest
Re:How to lock campfire?
« Reply #7 on: 31 Jan 2004, 00:01:29 »
Still I'd like to know what this is being used for...
Just very curious cause i've never heard of this topic before. Course I wouldn't want the  Russians to get wind of my knowledge..... ;D :o

DBR_ONIX

  • Guest
Re:How to lock campfire?
« Reply #8 on: 31 Jan 2004, 22:58:05 »
Hmm, heres a possible reason..
You can't blow out a camp fire in 2 seconds (Belive me, I've tried.. ;)) :P
Can you lock fires like you can jeeps? ::)
- Ben

Offline XCess

  • Former Staff
  • ****
Re:How to lock campfire?
« Reply #9 on: 01 Feb 2004, 01:51:17 »
There is a removeAction commadn but I'm not sure if you can use them for actions form the original game or it's for custom actions ONLY.. dunno.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:How to lock campfire?
« Reply #10 on: 01 Feb 2004, 03:00:45 »
 :) hey m8s

well, back in OFP 1.02 or alike I used the following crap to make an AI soldier
go light up a campFire:

 make a WP for Bob to the fire, then the syntax:

 Bob action ["Rearm", MyFire]; MyFire Inflame True

...to simulate Bob doing the boyscout stuff, but later on I discovered this other command :

  Bob action ["Fire Inflame", MyFire]

only, he still needs a WP to the fire object as the syntax works in spite of,
say Bob being some 20m's from the campfire  ;D

Now, this brings us to your problem: removing that action.
you MAY try a looped script checking if player has this action
and then repeatedly removing it, but as with all built-in actions
(e.g. the NVgogs) it prolly wont work any better then me eating
a burger after 1 ltr vodka  ::)

I'm afraid you'll have to stick w/ that action d00d  :-\





DBR_ONIX

  • Guest
Re:How to lock campfire?
« Reply #11 on: 01 Feb 2004, 12:06:36 »
Hmm.. The acctions might have a name you can use fire removeacction something on...
Or.. How about camcreating fire over the fire place... :P
Might work! :)
- Ben
And smoke, of course!

jkivivuori

  • Guest
Re:How to lock campfire?
« Reply #12 on: 02 Feb 2004, 09:53:47 »
Well,

First of all.. macguba, Artak, Tomb and DBR_ONIX Thank you all to your
ideas.  :D

The real Armstrong: You're right! =)

Tomb: Yes and No..  ;) I don't use those annoying waypoints at all..

GuiltyRoachKilla: When I make MPMissions i'll try to find/create something new ideas in it and
this campfire thing has "interresting point of view" in my latest mission. ..in this case, one of my basic ideas in this mission is, that no one can't set those fires off. . ..and I don't want to blow up anything at the moment.. :) (well, maybe something later perhaps..)
Stupid ass idea? well.. no, I don't think so.


Cheers!  8)

HL