Jump to content
Sign in to follow this  
foxykid09

Arma 2 SP TO CO-OP.

Recommended Posts

Hi Guys. I just played this mission and i opened it up on Mission editor and this guy managed to hide players on the map if you were playing by yourself but then other people could join and play as a player i used this code:

this setPos [getPos this select 0,getPos this select 1,1000];if (player==this) then {this enableSimulation false;this setVariable ["victim",objNull,true]};removeAllWeapons this;removeAllItems this;

It worked but then i switched to the player and i was in the sky and i fell and died.

Share this post


Link to post
Share on other sites

I dont understand what you are trying to do. In your code you place the unit 1000 meters up, so of course you will fall to your death...

Could you please explain what you want to happen? Making a SP mission into a COOP?

Share this post


Link to post
Share on other sites

kQbMroj.jpg

Whats with all these requests lately that no one understands?

Context, people, context! We don't own a magical crytal ball....

(Sorry for the offtopic, just had to get this off of my chest...)

Edited by XxAnimusxX

Share this post


Link to post
Share on other sites

@foxykid09 - apart from providing much better descriptions of what you want to achieve, I suspect that you need to learn more about how SQF works (as do I :) )

Apart from looking up individual commands in the BI WiKi (book mark it!) there are some excellent resources available. See the list I posted this morning for starters.

There's a more extensive list in the "Mission Editing and Scripting Information...." sticky thread near the top of this forum.

You should also take a look at the "[beginner's Guide] Arrays" thread just below it; that will help you understand what the "this select..." commands are doing. Position commands are arrays.

Thus, "setPosASL" deals with an array [X,Z,Y] where "Z" is height. Your code placed the unit at X & Y co-ordinates pulled from the array created by getPos, and you specified a height of 1000m.

"Ooh, what's that coming up towards me? I think I'll call it "ground". I wonder if it will be friendly?" [Douglas Adams, "The Hitch-hikers Guide to the Galaxy"]

Share this post


Link to post
Share on other sites

Never mind anymore i've Mindfucked myself pahaha i'll check the mission out

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×