OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: headshot_snipe on 24 May 2003, 14:55:04

Title: stay still
Post 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:
Code: [Select]
_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?
Title: Re:stay still
Post by: Knut Erik on 24 May 2003, 16:17:50
Um.. Try the "Stop" command.
This stop true
Title: Re:stay still
Post by: macguba on 24 May 2003, 17:35:22
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.
Title: Re:stay still
Post by: headshot_snipe on 24 May 2003, 17:58:20
tnx for the cam reply macguba, anyideas how to stop an animation like i stated above?

tnx anyways
Title: Re:stay still
Post by: Kaliyuga on 24 May 2003, 20:32:21
have a look at this:

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9761

should solve your animation troubles ;)