OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: TH on 22 Feb 2004, 19:26:22

Title: Respawn and loadout help
Post by: TH on 22 Feb 2004, 19:26:22
im trying to get some aircraft to respawn on the uss nimitz and when they die they spawn underwater.. also i have a problem having the east players respawn on deck. im a noob at scripting so explain a little ;D
Title: Re:Respawn and loadout help
Post by: TH on 22 Feb 2004, 19:28:52
also anyone know how to find out the names of weapons that are addons?
Title: Re:Respawn and loadout help
Post by: dmakatra on 22 Feb 2004, 19:33:54
I assume this is the exactly the same problem as in this (http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=16008) thread? Yes? Then please only make one thread.

:beat: *Gets Shot* :beat:
Title: Re:Respawn and loadout help
Post by: TH on 22 Feb 2004, 19:36:38
cant u plz just help me lol
Title: Re:Respawn and loadout help
Post by: Kaliyuga on 22 Feb 2004, 21:20:48
sorry man.. one thread per topic....  as was pointed out..


I know jack about respawning, but I do know that to raise/lower the height of an object/unit you need to use this bit of code:

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

where x = meters above ground.

the deck of the aircraft carrier is 19 meters so plug in 19 for x ....

I'm guessing perhaps you can use this code in a script or trigger to lift the unit to the proper height immediately upon respawning.

keep in mind if you do use it in a script instead of an init line, you will need to change all the instances of  "this"  in that bit of code to reflect specific units..


all further replies to this thread should be made in the other topic on the MP board..

this one's locked  ;D


#topic locked#
:toocool: