OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Owens on 18 Jun 2003, 01:37:49

Title: Light a fire?
Post by: Owens on 18 Jun 2003, 01:37:49
I remeber seeing something about getting a guy to light a fire a bity ago but i cant find the thread :-\
Plz could someone tell me  :).
Thx
Title: Re:Light a fire?
Post by: Wadmann on 18 Jun 2003, 01:48:40
According to the Command Ref:

fireplace inflame burn
Operand types:
    fireplace: Object
    burn: Boolean
Type of returned value:
    Nothing
Description:
    Control fireplace buring. Set true to inflame.

Example:
    fireplaceOne inflame true

A useful reference for all editors.

                                        Wadmann
Title: Re:Light a fire?
Post by: Captain Winters on 18 Jun 2003, 02:23:11
lol. Owens, now, you'da missed the old forums if you were ever on em!

Tanks! 8)
Title: Re:Light a fire?
Post by: Burn on 18 Jun 2003, 09:32:41
quote on Black_Feather
 
Re:The time for "Action" has come!
« Reply #2 on: May 05, 2003, 06:52:33 PM »


Quote
//light fire
unitname action ["Fire inflame",firename]

//put out fire
unitname action ["Fire put down",firename]

PS. this is probably instant so:
Quote
use domve and & distance < 3 in a script or something.

satisfied? ;D ;)
Title: Re:Light a fire?
Post by: Owens on 18 Jun 2003, 17:07:31
ahhh, thanks a lot :D , the guy dont need to move cos he'll be stood next to the fire at the time but if you can be bothered how to explain how to make him move then id be gratefull, i dont really know how to write scripts so if it requres vast knoledge of scripting then i wouldnt bother  :-\ .

Erm, i dont quite understand what ya mean there Captain Winters :-\ . Why would i have missed em?
Im confused ???
thx.

Title: Re:Light a fire?
Post by: Messiah on 18 Jun 2003, 17:42:57
to make him move to the fire, use:

manname domove (getpos firename)

:thumbsup:
Title: Re:Light a fire?
Post by: Owens on 18 Jun 2003, 17:49:21
ahh Right thx messiah.
But my guy bends down to light fire, lights it and then stays in that position, just crouched, how i get him to stand up. i have tried putting <man> setunitpos "UP" afterwards but it dosnt work.
thx
Title: Re:Light a fire?
Post by: Messiah on 18 Jun 2003, 17:53:41
hmmm... yeah - well if u notice when u place a satchel charge as a player, if u dont press any keys after selecting 'place satchel charge' u remain in the same position...

so place a game logic somewhere else... and then make him move to that gamelogic using the same line as i wrote above  :D
Title: Re:Light a fire?
Post by: Burn on 18 Jun 2003, 17:54:30
Try: unitname switchMove "ObjNull" or unitname switchMove "Null"
Title: Re:Light a fire?
Post by: Owens on 18 Jun 2003, 17:57:05
nm, i got him to light fire where he is and then run towrds fire. Atleast he stands up after he has lit it now :-\
So ill just stick him next to fire and then he can just...run somewhere  :)
Thx
Title: Re:Light a fire?
Post by: Owens on 18 Jun 2003, 18:02:21
ahh right, its working now, thx for help :D