OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Abyss on 24 Jun 2003, 21:44:31
-
HI guys its me again umm i just wanted to know whats the command to get a dude to sit down on da floor and also how to do you get an object to float above the ground because i want a raido to be on the bonnet of a hummer and when i just place it it just sits on the floor below the car. :P
Thx im advance Abyss
;D
-
:oYou... AGAIN? NOOOOOOOO :noo:... :moon: :PNaaaaaaah just kidding :beat:, don't remember seeing u before ;D...
anyways... lets get to your question shall we? ::)
First, flor\ground sitting thingy:
Unitname switchmove "EffectStandSitDown"
or in the init-field of the unit:
this switchmove "EffectStandSitDown"
Second, floating thingy (or setPosi'n, is maby a more appropriate definition):
this setpos[(getpos this select 0),(getpos this select 1),1]
Type the above line in the init-field of the object or unit u want to setpos, this will make the unit\object move up 1m...
If u want the object or unit to centre to another object, lets say a table, just type:
obj setpos[(getpos table select 0),(getpos table select 1),1]
Where obj=name of object\unit, and table=name of table...
Did that help? ;)... :booty:
-
@ Bizon
:wow:
dats... donno how 2 call it ::)
nywyz u got 1 eror
or in the init-field of the unit:
this switchmove "EffectStandSitDown"
switchmove doesnt work in da init :P
LCD OUT
-
:hmm:Huh?!?!... Yeah, u'r kind of right ;D... Most of the switchMoves don't work in the init-field... or rather allmost none of them :P, but iv'e managed to use
this switchmove "EffectStandSitDown"
in the init-field... It worked for me, soo I thought it should work for others too... But I've only succeeded with a few of those switcMoves...
So THERE ;D :joystick:
:cheers:
-
dat strange - doesnt work 4 me >:( :P - attach example mision ?
LCD OUT
-
Haaa, haaa ;D *points & laughs*... :P I feel sorry 4ya so I'm gona attach a example 4ya... Here ya go LCD m8 ;D...
-
:tomato:
it works :o i saw it w/ ma own eyes - but i think m goin blind now ::)
LCD OUT
-
(http://216.40.249.192/s/ups/icis/ices_rofl.gif) ...U probably just forgot to set behaviour "safe" when u tried it u'r self ;D... And like u said once, "It's da matrix u hawe to belive" :booty: :moon: :beat:
(http://66.227.101.70/contrib/xerx/smileybreasts.gif)
-
(http://www.spielerboard.net/images/smilies/lool.gif)
i belive ;D ;D :moon: :booty:(http://lcd23.tripod.com/anim-jjd.gif)
(http://lcd23.tripod.com/lsvader.gif)
nd here is da next thing m gonna do 2 u
(http://lcd23.tripod.com/samuriay.gif)
kool aint it (http://lcd23.tripod.com/coolgleamA.gif)
LCD OUT
-
ROFL(http://smilies.networkessence.net/s/otn/realhappy/xxrotflmao.gif) ...That's nothing compared to what I'm gonna do to you...
Me=(http://66.227.101.70/contrib/legionxs/fart.gif)=LCD