OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: headshot_snipe on 24 May 2003, 14:55:04
-
How do you make a unit stay in a position:
i was trying to make a guy do the crouchtobinoccrouch move, the guy is in unitpos"UP" and behaviour"combat". he does it but finishes it. I want him to stay in that position. any ideas? ???
tnx
EDIT: I also have a query about camera sciptting, this is my script:
_camera cameraEffect ["internal","back"]
;game1 is a game logic, does it have anything to do with the problem?
_camera camset getpos game1
_camera camSetTarget cargo
titleCut ["Somewhere on Nogojev","BLACK IN",6]
_camera camCommit 0
~5
titleCut ["2200 hours","PLAIN",4]
_camera camcommit 0
exit
with this i just get a view right in the sea, anyideas whats wrong?
-
Um.. Try the "Stop" command.
This stop true
-
You have used "camset", which is not a command.
You also don't have a line like this:-
_camera = "camera" camcreate [0,0,0]
so your camera is not being created properly, which will be confusing the game.
Copy the start of a camera script from an existing mission or one of the tutes.
-
tnx for the cam reply macguba, anyideas how to stop an animation like i stated above?
tnx anyways
-
have a look at this:
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9761
should solve your animation troubles ;)