OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Commando on 08 Feb 2004, 21:08:00

Title: respawning on a aircraft carrier or other object?
Post by: Commando on 08 Feb 2004, 21:08:00
Have tried out the hawk uss nimitz carrier and it really is the best west carrier out there for the moment  :D
I wanted to make a multiplayer mission with respawn on it but i can't make soldiers that die to respawn on the deck that's located 19 m up. they fall down in the water and die.. Anyone please help me out with a solution  :-\
tried setpos code in the init fields of the men but that only works first time when starting mission.
Title: Re:respawning on a aircraft carrier or other object?
Post by: M_Horth on 08 Feb 2004, 22:20:22
try respawning them on land and then jumping them to the carrier.
Title: Re:respawning on a aircraft carrier or other object?
Post by: Commando on 08 Feb 2004, 23:11:46
 :gunman: i made a mission recently where i had editor addon buildings and objects but it looks so messy :P maybe can take a couple of ladders and setpos them after one and antoher so that they can climb up but i have seen parachute respawn so there should be some way to solve my problem to  :beat:
Title: Re:respawning on a aircraft carrier or other object?
Post by: Tactician on 09 Feb 2004, 01:16:38
Ok, I assume only the west side respawns on the carrier.  Make a trigger like this..

Condition: alive player AND side player == WEST
Activation: player setPos [(getPos player select 0),(getPos player select 1),(getPos player select 2) + 19]
Activated repeatedly.
Title: Re:respawning on a aircraft carrier or other object?
Post by: Commando on 09 Feb 2004, 20:16:27
Thx tactician for the reply  ;D it actually helped me very much, player is that the name of the soldier that is going to be respawned ?
I also noticed that i have to have the respawn marker at the trigger to  :)
Title: Re:respawning on a aircraft carrier or other object?
Post by: myke13021 on 12 Feb 2004, 15:14:01
"player" is the loon which is controlled by a human player (duh)...so on MP map, this value (and it is a value, not a name) is different on each comp.....look it like this: AI controlled loon, PLAYER controlled loon  ;D

:edit:

when i read Tacticians post correctly, the trigger has to be same size and shape as the respawn marker...and same pos of course
Title: Re:respawning on a aircraft carrier or other object?
Post by: deaddog on 12 Feb 2004, 15:29:35
Quote
when i read Tacticians post correctly, the trigger has to be same size and shape as the respawn marker...and same pos of course


The size and position of that trigger makes no difference.

Title: Re:respawning on a aircraft carrier or other object?
Post by: myke13021 on 12 Feb 2004, 15:32:33
deaddog's right...didn't read it correctly
Title: Re:respawning on a aircraft carrier or other object?
Post by: deaddog on 12 Feb 2004, 15:35:16
Yeah, if it doesn't have the word "this" in the condition or you use "thislist" somewhere (condition or activation lines), then size and positions, present/not present etc, etc, doesn't matter.
Title: Re:respawning on a aircraft carrier or other object?
Post by: myke13021 on 12 Feb 2004, 17:05:36
ya you're right...i know you're right  ;D
Title: Re:respawning on a aircraft carrier or other object?
Post by: Commando on 12 Feb 2004, 21:04:11
thx i know if works now, only issue is that ya sometimes fall through the deck on some places or when you respawn but thats just small stuff.  ;)
Im kind of sick right now so i can't sit with ofp much or so  :P