Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Putting people in towers
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Putting people in towers (Read 645 times)
0 Members and 1 Guest are viewing this topic.
Jim666
Guest
Putting people in towers
«
on:
15 Apr 2004, 12:20:32 »
Ok, I want to put 2 towers in my little east base and i want snipers in them just to make it a little harder, but normaly you would just put the object there and then put the sniper on it in the editor butt thatosnt work so im guessing theres another way.
Logged
SilentHunter
Members
frozen leg'o'lamb (every gamers most loved weapon)
Re:Putting people in towers
«
Reply #1 on:
15 Apr 2004, 12:36:33 »
Put this in the init field of the sniper
this setpos [(getpos this select 0),(getpos this select 1),17]
then just tweak the height (last value, 17 in this example) to the specification you want
Logged
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]
Jim666
Guest
Re:Putting people in towers
«
Reply #2 on:
15 Apr 2004, 12:40:22 »
Ok ill go try it, thanks
Logged
Jim666
Guest
Re:Putting people in towers
«
Reply #3 on:
15 Apr 2004, 12:50:02 »
hey, that doesnt work, the sniper is in the air then he just goes down to the ground.
Logged
SilentHunter
Members
frozen leg'o'lamb (every gamers most loved weapon)
Re:Putting people in towers
«
Reply #4 on:
15 Apr 2004, 12:54:13 »
Try this then
same agin put it in the init field and name the tower "tower1"
this setpos [(getpos tower1 select 0),(getpos tower1 select 1),17]
Logged
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]
Jim666
Guest
Re:Putting people in towers
«
Reply #5 on:
15 Apr 2004, 13:02:26 »
yeah that worked, thanks again!
Logged
Loup-Garou
Guest
Re:Putting people in towers
«
Reply #6 on:
15 Apr 2004, 15:58:02 »
Another solution : in the editor, just put your unit "in" the tower, and in the unit's init field put : this setPos [getPos this select 0,getPos this select 1,2]. If you want to be more precise, you can put numbers like 0.85. You can also put negative values like -5 (very useful when you want a unit on a chair, if you've heigh problem due to the ground...
).
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Putting people in towers
Top of page