OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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
-
lol. Owens, now, you'da missed the old forums if you were ever on em!
Tanks! 8)
-
quote on Black_Feather
Re:The time for "Action" has come!
« Reply #2 on: May 05, 2003, 06:52:33 PM »
//light fire
unitname action ["Fire inflame",firename]
//put out fire
unitname action ["Fire put down",firename]
PS. this is probably instant so:
use domve and & distance < 3 in a script or something.
satisfied? ;D ;)
-
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.
-
to make him move to the fire, use:
manname domove (getpos firename)
:thumbsup:
-
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
-
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
-
Try: unitname switchMove "ObjNull" or unitname switchMove "Null"
-
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
-
ahh right, its working now, thx for help :D