OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: jkivivuori on 30 Jan 2004, 12:00:32

Title: How to lock campfire?
Post by: jkivivuori 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
 
Title: Re:How to lock campfire?
Post by: macguba 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.
Title: Re:How to lock campfire?
Post by: Artak 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
Title: Re:How to lock campfire?
Post by: Dubieman 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]

 ??? ??? :-\
Title: Re:How to lock campfire?
Post by: Artak 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.
Title: Re:How to lock campfire?
Post by: Dubieman 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? :)
Title: Re:How to lock campfire?
Post by: dmakatra 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:
Title: Re:How to lock campfire?
Post by: Dubieman 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
Title: Re:How to lock campfire?
Post by: DBR_ONIX 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
Title: Re:How to lock campfire?
Post by: XCess 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.
Title: Re:How to lock campfire?
Post by: Tomb 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  :-\




Title: Re:How to lock campfire?
Post by: DBR_ONIX 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!
Title: Re:How to lock campfire?
Post by: jkivivuori 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