Jump to content
Sign in to follow this  
L.Trale

Setting the Pos of players to marker called from Array

Recommended Posts

Tried to explain this the best I could in the title. (Obviously, something is wrong, right?)

Here's the code I'm working on. I'm trying to teleport players to a random marker on the map.

_Place = ["Basecamp", "Shacks"] call BIS_fnc_selectRandom;
sleep 1;
hint format ["Map Selected: %1", _Place];
sleep 1;
Alpha1 setPosATL (getMarkerPos "_Place");

Everything goes good until It teleports the player. When it does, it teleports them to the bottom of the Ocean.

I've tried using getPos and setPos, and I've searched for an answer. Any help would be greatly appreciated. :)

Share this post


Link to post
Share on other sites

Wow, thank you so much!

---------- Post added at 03:48 ---------- Previous post was at 03:15 ----------

Quick question; I want to make a simple Melee script. I'm using Stab_him attachto [_Alpha,[0,1,0]]; as the action, and the trigger has {_x setdamage 1} foreach thislist;.

It doesn't seem to be working. (Note: It may be because the player is given a name via script, not sure)

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  

×