This is the way i do it, might be anothers.
If a player arrives late in the mission or reconnects, if the Intro was "ON" he shouldnt be forced to watch it all over again. So the way to do this is to tell ARMA that guy has arrived late.
On init.sqs file place the following code:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if !(local Server) then {exit}
onPlayerConnected " publicVariable ""missionstarted""";
[/QUOTE]
And in intro, where you set the parameters, have something like this:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(param1) == 1 AND missionstarted = false : goto "start" else goto "end"
?(param1) == 0: goto "end";[/QUOTE]
Where #start is where camera coding begins and #end where it ends... obviously.
In the mission place a trigger set condition to "TRUE" with a countdown of 10 seconds or more, depends of your choice. In trigger, on activation, set the condition "missionstarted" to true, like this:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">missionstarted = true; PublicVariable "missionstarted";[/QUOTE]
and the player wont see the intro after 10 seconds in the mission.
The onplayerconnected is very usefull to publicize the state of the variables to the late commers players. It really helps on intros, and i believe it has much more utility on other type of missions.
Hope this is helpfull
HOME 
Reply With Quote


), what's ur opinion/findings?

