OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: D007 on 15 Sep 2008, 08:59:55

Title: Respawning vehicles need to stay linked to triggers and markers.. solved
Post by: D007 on 15 Sep 2008, 08:59:55
Well I guess the topic kind of sums it up...
We're using a convy and I hate the" this respawnvehicle [30]"command in it.. and I hate the variables attached to it..
everything about it makes it glitchy as hell and a pain in the arse to work with..
any easy way to keep a respawning vehicle attached to a trigger?

also the vehicles have markers attached to them.. seems when they die the markers loose their place ><..
How can I keep those markers attached to those vehicles?

We have 2 vehicles that fall under that necessity.
one named "truck" and one named "boat"
we like to keep it simple.
Hate to bug yas.. but im brain fried again.. thanks all..
Title: Re: Respawning vehicles need to stay linked to triggers and markers.. help plz.
Post by: Spooner on 15 Sep 2008, 12:44:08
Although talking about running code on respawning players in MP, I answered a similar question (http://www.ofpec.com/forum/index.php?topic=32152.0) recently.

You'd want to change the sideChat statement to (Assuming your trigger is named "myTrigger"):
Code: [Select]
myTrigger triggerAttachVehicle [call _getObject];
Title: Re: Respawning vehicles need to stay linked to triggers and markers.. solved
Post by: D007 on 17 Sep 2008, 05:41:28
ty Spon :)
what we ended up doing was this in the trigger

Condition: boat in thisList

thats it...lol..
works like Charm :P

but i will keep that code handy for future reference.
thanks a bunch.