Alef/Sandbox – User
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 13: | Line 13: | ||
playerResurrectScript = "onPlayerResurrect.sqs"; | playerResurrectScript = "onPlayerResurrect.sqs"; | ||
teamSwitchScript = "onTeamSwitch.sqs"; | teamSwitchScript = "onTeamSwitch.sqs"; | ||
</pre> | |||
JIP will not init player pointer until some time has elapsed. | |||
What exaclty reports isPlayer then in that time? | |||
<pre> | |||
init.sqf: | |||
// JIP test | |||
_u=player; | |||
_s=format["1:%1 2:%2 3:%3 4:%4", | |||
isNull player, | |||
isPlayer player, // the pointer | |||
isPlayer _u, // the pointed object ? | |||
player, | |||
]; | |||
</pre> | </pre> | ||
Revision as of 10:10, 14 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";
JIP will not init player pointer until some time has elapsed. What exaclty reports isPlayer then in that time?
init.sqf: // JIP test _u=player; _s=format["1:%1 2:%2 3:%3 4:%4", isNull player, isPlayer player, // the pointer isPlayer _u, // the pointed object ? player, ];
class Missions { class Mission0 { template=Mission0.Sara; param1=1; param2=2; cadetMode=0; };