Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
NGagedFX

Changing flags and moving around respawn_West

Recommended Posts

I feel like this should be a rather simple command in some trigger, but after a lot of experimenting I'm still unable to do it. :confused: Here's my setup:

Russian Flag - flag1

Farmwife - fm1

Spawn Area - respawn_West

fm1 is standing next to flag1. When fm1 dies, a trigger activates (Cond = !Alive fm1) and I want the Russian flag to turn into an USA flag and I want respawn_West to be ''teleported'' to the location of the USA flag.

Share this post


Link to post
Share on other sites

Hi NGagedFX

Im not sure if i understand right.

try this:

1. set global trigger next to "flag1" ( 0/0 )

2. sync trigger to farmwife! (groups!)

3. now you start a script from trigger when farmwife is NOT PRESENT

4.

- create a HeliHemty at position of flag1

- delete flag1

- create new american flag (flag2) at position of the invisible "H"

- delete invisible "H"

- move respawn marker to new flag -

"respawn_West" setMarkerPos getPos flag2

dont forget delay between the commands.

is that what u want?

let me know if u need exact explanation!

Edited by davincy81

Share this post


Link to post
Share on other sites

Well, I didn't really plan to use a script for this since I don't understand a thing about scripting.

Let's say I place a USA flag somewhere on the map and call it flag2. When my trigger activates, I want it to move flag2 to flag1's position and then delete flag1. I've tried: flag2 setPos [getPos flag1] followed by a deleteVehicle command, but it doesn't move around flag2 at all.

Share this post


Link to post
Share on other sites

Okay, so far I got:

In trigger:

Condition:

!Alive fm1

On Act:

flag2 setpos getpos flag1; deletevehicle flag1; respawn_west setmarkerpos getpos flag2;

But the respawn marker doesn't move :/

I'll keep testing though!

- HateDread.

EDIT:

From http://community.bistudio.com/wiki/setMarkerPos:

This command will not move a marker on dedicated server (if a client calls it). AI will continue to respawn at old spot if you are moving something like respawn_west.

Maybe explains why I cannot move respawn_west?

Edited by HateDread

Share this post


Link to post
Share on other sites

makernames need "" sometimes i think.

"respawn_west" setmarkerpos getpos flag2;

anyway, i would bind the trigger to the farmwife.

when fm1 "Not present" then:

activation:

deleteVehicle flag1;

"respawn_west" setmarkerpos getpos H1;

flag2 setpos getPos H1;

setup:

- one flag (american) hidden somewhere on map name "flag2"

- one invisible H (H1) exactely position of "flag1" (russian flag)

- Marker "respawn_west" somewhere on map wherever u want

atm the spawn-marker dont move in your example because there is no deley between create/move flag2 and move respawn-marker

You could change just texture of flag also...

Edited by davincy81

Share this post


Link to post
Share on other sites
Sign in to follow this  

×