Alef/Sandbox – User
< Alef
Categories:
mNo edit summary |
mNo edit summary |
||
| Line 17: | Line 17: | ||
#define GET_VARIABLE( U, V ) U getVariable #V | #define GET_VARIABLE( U, V ) U getVariable #V | ||
#define GET_VARAIBLE_2( U, V, D) if (isNil U getVariable #V) then {D} else {GET_VARIABLE( U, V )} | #define GET_VARAIBLE_2( U, V, D) if (isNil U getVariable #V) then {D} else {GET_VARIABLE( U, V )} | ||
_name = GET_VARIABLE_D( _unit, tracking_name, name _unit ) | |||
class Missions { class Mission0 { | class Missions { class Mission0 { | ||
Revision as of 13:58, 21 April 2009
Try setVehicleInit in "killed" EH.
addEventHandler "init" on createVehicle?
EH runs a {Code}, that means, sync.
what if run sync {Code} in killed EH?
scriptsPath = "scripts\";
startupScript = "";
cameraScript = "";
playerKilledScript = "onPlayerKilled.sqs";
playerRespawnScript = "onPlayerRespawn.sqs";
playerRespawnOtherUnitScript = "onPlayerRespawnOtherUnit.sqs";
playerRespawnSeagullScript = "onPlayerRespawnAsSeagull.sqs";
playerResurrectScript = "onPlayerResurrect.sqs";
teamSwitchScript = "onTeamSwitch.sqs";
#define GET_VARIABLE( U, V ) U getVariable #V
#define GET_VARAIBLE_2( U, V, D) if (isNil U getVariable #V) then {D} else {GET_VARIABLE( U, V )}
_name = GET_VARIABLE_D( _unit, tracking_name, name _unit )
class Missions { class Mission0 {
template=Mission0.Sara;
param1=1;
param2=2;
cadetMode=0;
};