OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Cabellan on 06 May 2007, 13:30:45
-
Hello,
It's my first topic and I'm sorry for my english. ^^
I tried to put the spectating script by Kegetys in my mission but when a player dies he stays in the first person. He doesn't become a seagull or a "spectator". Is there a command to put in a trigger or else?
Thanks for your help.
-
AFAIK, what you need is:
this in your init.sqs
// Initialize spectating script when player joins as seagull
// Set the following to limit visible sides:
// KEGsShownSides = [west, east, resistance, civilian];
[] execVM "spect\specta_init.sqf";
Sleep 2;
foo = [player, player, "null"] execVM "spect\specta.sqf";
This on your onPlayerRespawnAsSeagull.sqs
; Initialize spectating script when player dies
; Set the following to limit visible sides:
; KEGsShownSides = [west, east, resistance, civilian];
_this execVM "spect\specta.sqf";
This on your description.ext
// Include spectating script resource
#include "spect\spectating.hpp"
And the spect folder.
-
Are you testing it in the mission editor or in a real multiplayer game?
-
I tested it in the two.
In the mission editor it's working when I put in a trigger
foo = [player, player, "null"] execVM "spect\specta.sqf";
and in multiplayer, the player stays in first person.
(without foo = [player, player, "null"] execVM "spect\specta.sqf"; in a trigger)
-
I'm not sure if the script works without doing this, but have you tried killing yourself?
I'm not sure if you have tried it. It only works if you join as a seagull or die as far as I can remember.
-
I tried to kill myself and i stayed in the first person with my character dead.
After, i asked to a mate to kill me but it's same.