seedo81 10 Posted September 23, 2009 hi i wonder how to move a marker position from a trigger the marker position is a re-spawn point Share this post Link to post Share on other sites
kylania 568 Posted September 23, 2009 "markerName" setMarkerPos getPos player; Share this post Link to post Share on other sites
seedo81 10 Posted September 23, 2009 am a noob can u specify please where i write this? ---------- Post added at 09:26 PM ---------- Previous post was at 09:17 PM ---------- can anyone tell me how exactly i write the script? please :o Share this post Link to post Share on other sites
kylania 568 Posted September 23, 2009 I did... In the onAct of your trigger put the code I posted above. Change player to whatever object you want it to move to. Change "markerName" to whatever the name of your marker is, "respawn_west" I imagine? Share this post Link to post Share on other sites
seedo81 10 Posted September 23, 2009 ok i got it work but i respawning with other players no i want to reposition the marker ---------- Post added at 10:21 PM ---------- Previous post was at 10:03 PM ---------- thank you man i finally find out how it will work this is the code "respawn_west" setMarkerPos getPos respawn_west2; respawn_west is my primary respawn point in the game after a mission is finished i want a new respawn place so i made a new marker calld respawn_west2 and tell the engin throw a trigger if the mission completed then set the respawn to respawn_west2 and it worked perfectly with no problems cooooooooooool now my poor soliders dont need to travel 5000 m to finish the mission:bounce3: ---------- Post added at 10:22 PM ---------- Previous post was at 10:21 PM ---------- thank you kylania u rock Share this post Link to post Share on other sites
kylania 568 Posted September 24, 2009 (edited) \o/ Glad I could help. It's always nice saving people a 5000m run :) Another method for this is via "teleport". Using the following script for example on a flag pole near your respawn_west to teleport to respawn_west2. That way they can respawn to base, rearm or whatever, then teleport forward to your second marker. // Teleports a person to the marker. You can place this marker anywhere on the map. // // To use: Add this script as an action on an item via it's init field. EG: // //this addAction["Dest Description","teleport.sqf",["markerName"]]; // //this addAction ["Teleport - Talon","teleport.sqf",["FOB_Talon"]]; //this addAction ["Teleport - Base","teleport.sqf",["Base"]]; //this addAction ["Teleport - Airfield","teleport.sqf",["Airstrip"]]; // Get the destination. _dest = (_this select 3) select 0; // Get a random direction _dir = random 359; // Move the person 15 meters away from the destination (in the direction of _dir) player SetPos [(getMarkerPos _dest select 0)-10*sin(_dir),(getMarkerPos _dest select 1)-10*cos(_dir)]; Edited September 26, 2009 by kylania Share this post Link to post Share on other sites
seedo81 10 Posted September 24, 2009 thank you man i will try that:) Share this post Link to post Share on other sites
TAW_T-Bone 10 Posted November 26, 2009 \o/ Glad I could help. It's always nice saving people a 5000m run :)Another method for this is via "teleport". Using the following script for example on a flag pole near your respawn_west to teleport to respawn_west2. That way they can respawn to base, rearm or whatever, then teleport forward to your second marker. // Teleports a person to the marker. You can place this marker anywhere on the map. // // To use: Add this script as an action on an item via it's init field. EG: // //this addAction["Dest Description","teleport.sqf",["markerName"]]; // //this addAction ["Teleport - Talon","teleport.sqf",["FOB_Talon"]]; //this addAction ["Teleport - Base","teleport.sqf",["Base"]]; //this addAction ["Teleport - Airfield","teleport.sqf",["Airstrip"]]; // Get the destination. _dest = (_this select 3) select 0; // Get a random direction _dir = random 359; // Move the person 15 meters away from the destination (in the direction of _dir) player SetPos [(getMarkerPos _dest select 0)-10*sin(_dir),(getMarkerPos _dest select 1)-10*cos(_dir)]; This is exactly what i am looking for - can you explain it a little more. Example: i have 3 locations to teleport to. i add to the init of the flagpole: addAction["teleport - Squad 1","teleport.sqf",["Squad_1"]]; addAction["teleport - Squad 2","teleport.sqf",["Squad_2"]]; addAction["teleport - Squad 3","teleport.sqf",["Squad_3"]]; and then place those 3 marker with the name Squad_1 till 3 on the map. make an teleport.sqf with the script as you writing but where in the script do i put the marker names? Share this post Link to post Share on other sites
McArcher 0 Posted December 19, 2009 (edited) I have a question. Is TELEPORTING the only way to make CTI/Warfare-style respawn to multiple positons? Edited December 20, 2009 by McArcher Share this post Link to post Share on other sites