OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: LCD on 15 Jun 2007, 20:27:07

Title: setting players stance
Post by: LCD on 15 Jun 2007, 20:27:07
is dere nyway i can set da players stance ? cuz my cutscene seems 2 work only if da player is standin  ::)  :whistle:

LCD OUT
Title: Re: setting players stance
Post by: Rellikki on 15 Jun 2007, 20:30:46
Try the setUnitPos (http://community.bistudio.com/wiki/setUnitPos) command. The modes are explained in that page. ;)
Title: Re: setting players stance
Post by: bedges on 15 Jun 2007, 20:47:50
much as they are on this page (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#setUnitPos)....
Title: Re: setting players stance
Post by: Mandoble on 15 Jun 2007, 21:37:32
Do you mean that setUnitPos will prevent the player to go prone?
Title: Re: setting players stance
Post by: LCD on 16 Jun 2007, 00:50:15
lol.... and i even searched 4 setstance nd setunit stance... ill check if dis works :D

LCD OUT

[edit] ectually it doesnt work 4 player unit... even if i disableuserinput

[edit 2] is dere a way 2 know which stance he uses... i tried usin da boundingBox command but it doesnt check between crouch and standin (it does get prone outta way tho :D)

LCD OUT
Title: Re: setting players stance
Post by: Blanco on 16 Jun 2007, 02:06:51
Mandoble getpos function (http://www.ofpec.com/forum/index.php?topic=29174.0)
Title: Re: setting players stance
Post by: LCD on 16 Jun 2007, 02:14:46
im probably gonna end wing my life 2 mandoble... y isnt dis script in da function library ?  ???

thx Blanco

& thx Mandoble 1ce again  :-*

LCD OUT

[edit] da function doesnt seem 2 work in da area im usin... as da citscene starts on a stairs it keeps returnin -1

also around dat buildin it returns -1 if standin 0 if crouchin nd 1 if layin low  ::)

[edit2] forget dat :D i got dat workin by strangle havi9n da boundingBox co-operate w/ mandobles function :D   :yes:
Title: Re: setting players stance
Post by: Mandoble on 16 Jun 2007, 02:53:09
But that getpos function will tell you if the unit is not standing, but will not force it to keep standing
Title: Re: setting players stance
Post by: LCD on 16 Jun 2007, 02:58:00
u know arma IS a strange tingy  :confused:

my cutscene uses anims 2 have da player run away... but it seems da anim starts 2 diffrent directions if da player is standin or crouchin... so i adjust his initial direction accordin 2 his stance (nd u cant crawl on stairs so dats not a prob :D)

LCD OUT
Title: Re: setting players stance
Post by: Mandoble on 16 Jun 2007, 03:07:53
I would forget about the player
That is, black out
create the camera, etc and move the player to an isolated island full of canibals
and place where the player was an AI unit with all AI disabled and do with this unit what you want after a BLACK in
Once finished
black out again, delete the AI unit and move the real player where the AI unit was
destroy the cutscene camera and black in again
Title: Re: setting players stance
Post by: LCD on 16 Jun 2007, 03:20:44
i considered dat... but i got it workin like dat :D ill change if ny strange bugs appear tho...

btw can i get da players identity usin getidentity... nd den use setidentity on AI unit ?

LCD OUT