OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Zen271 on 21 May 2003, 21:30:37

Title: Putting Machine Gunner on Roof Top Help! Please!
Post by: Zen271 on 21 May 2003, 21:30:37
If anyone knows how to put a Machine gunner (M2) on a rooftop Please let me know.
I appreciate any help on this.

zen
Title: Re:Putting Machine Gunner on Roof Top Help! Please!
Post by: Terox on 21 May 2003, 21:50:24
put the following line in the init box of the object/player you want to raise or lower in height


this setpos [getpos this select 0, getpos this select 1,5]



5= height,
Negative number sinks it
Positive number = Above ground

Getting the correct height adjustment is trial and error
Title: Re:Putting Machine Gunner on Roof Top Help! Please!
Post by: hurlothrumbo on 23 May 2003, 16:48:53
I find its easier to set the height much too high first then keep adjusting it down, because then the object doesnt get in the way - for a small house about 50, a block of flats/ whatever 100 / 150
Title: Re:Putting Machine Gunner on Roof Top Help! Please!
Post by: SpecOpWarrior on 25 May 2003, 16:26:56
I have something written down that I have kept from the very begining.  I dont know if it is "out of date"  but I will but it up anyway.




Init:

this setpos [(getpos this select 0),(getpos this select 1), 5 ];


All you need to do is change the BOLD variable to whatever you want.  The higher the number, the higher it goes.

Remember it doe not need to be 1 2 3 4 5 numbers,
you can also do : 2.7 or something for exact measure.



BTW:  Do not space the ending..  I just did that so the forums can read it correctly
Title: Re:Putting Machine Gunner on Roof Top Help! Please!
Post by: Terox on 25 May 2003, 17:00:43
lol specop