Forum Jump :

Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 43
In-game name: Ogion [SW]

 
#1 Posted at 2010-03-19 07:45        
     
Ok, so this is probably an easy one, but I fail to find an answer, no matter all my searches!

The problem:
When my unit respawns in MP after being killed once, the init line command doesn't come up.
It works when the mission starts up initially, but as soon as he bites the dust, the addAction I have in his init line is gone. it is, however, persistent n the corpse's init line, which is far less than desirable.

Any guru have a solution to this? I've asked in other forums as well, but the solutions I got there is mainy to arma2 or doesn't work att all. Period.

Thanks in advance guys.

Edit: Or do I have to go about this in an all different way?

This post was edited by ogion (2010-03-28 07:45, ago)

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Author Message


Posts: 20630
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 43
In-game name: Foxhound

 
#2 Posted at 2010-03-19 09:41        
     
You will have to use a respawn script, instead of the default respawn options added in the description.ext.
Our download section for both Armed Assault and ArmA 2 surely contain respawn script which will let you do the above :)

Visit my family webshop desteigerhoutshop.nl.

Advertisement


Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 43
In-game name: Ogion [SW]

 
#3 Posted at 2010-03-19 09:52        
     
crap... Well, thanks anyways.

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/

Author Message

ogion  



Posts: 115
Rank:


Level: Member

Country: se
Location:
Occupation: Small business owner
Age: 43
In-game name: Ogion [SW]

 
#4 Posted at 2010-03-22 05:16        
     
Well, this is how I solved it:

Maybe not as eloquent as many of you script gurus would have done it, but this works.

bossinit.sqs
#start
_this select 0
@ (alive player)

player addAction ["Set Rally Point","rp.sqs",false, -1, false, true, "false"];

@ (! alive player)
removeAction select 0;
goto "start"

And so the rp.sqs
player playMove "AinvPknlMstpSnonWnonDnon_medic_2";
"respawn_west" setMarkerPos position player;
flagpoint setPos getMarkerPos "respawn_west";
player sideChat "New Rallypoint established!"


So here it is and free to use for anyone who wants it.

Known issue:
ALL players get access to ALL extra actions used.



Edit: flagpoint is the name of my flagpole.

This post was edited by ogion (2010-03-22 06:27, ago)

"Do, or do not. There is no try!" - Yoda
http://www.silentwarriors.org.uk/