Timmymachine109
-
Content Count
6 -
Joined
-
Last visited
-
Medals
Posts posted by Timmymachine109
-
-
WOW....What an idiot, found out what I was doing wrong!! The PlayerConnected.sqf was in a folder inside the mission folder!!! Epic fail!!! Not sure how to delete this post but it can be closed :)
-
Hi everyone,
I'm having major dramas with the onPlayerConnected command for a multiplayer mission! This is the first time I've ever made anything for a dedicated server and I have looked at every topic that I can find on the net for help!! I just need to know what is the correct syntax for this function and where should it be placed?
Currently I have at the top of my init.sqf:
if (isServer) then
{
onPlayerConnected "nul = [_id, _name] execVM ""PlayerConnected.sqf""";
};
This however doesn't seem to do anything!! I have tried putting in remotely execute hints to check if it is running but they don't appear so I assume they aren't running.
PlayerConnected.sqf is in the main folder of the mission, is this right or does it need to be stored in the same directory as the server?? Inside it is just a load of public variables to client.
Any help would be amazing!!!
Thanks
Tim
-
Thanks for the reply...this isn't what I'm really looking to do though.
Basically I'm making an escape mission...there are a lot of civilian vehicles spread throughout the map that the players can use. I've tested killing a driver of the civilian vehicle and getting in and you can get right up to OPFOR AI without them engaging. If you get too close though they kill you.
I think the easiest thing to do would be to create all the vehicles at the start as civilian and then delete all the drivers. I've found one thread on how to do this but I don't understand how the script works as I get an error when using it.
The error states "Type nothing, expected bool"
-
Hey all,
New to this forum and would be really happy if someone could answer my question. I saw in a thread from 2009 that if a BLUFOR player gets into a civilian vehicle OPFOR AI will have a hard time detecting him? Is this true?
If it is I'll be chuffed as I wanted this to happen and was looking of a way to script it in myself!!
Cheers for any answer anyone can give me :)
Timmy
-
Just started scripting in ArmA 2 and I found this thread really helpful for designing my first mission :) I managed to get the switch statement version of this working deadlyhabit just in case you see this!! The variables in the switch statement were all local and as such couldn't be accessed by the rest of the script :) Just delete the _ and it works fine :D
onPlayerConnected problems
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted
OK thanks a lot :)