Jump to content
Sign in to follow this  
Doggolainen

A few newbie questions

Recommended Posts

First off: Is there any other way to trigger things due to detection, except the ones that are already there in the trigger options.

For instance if I would like to have the music to start if "General1" enters the area, but not "General2".

My other quesiton is if there is anyway I can move an object from one side of the map to the other. Or simply toggle a true/false option for the specific object.

I want to use this for the empty->sounds->alarm to appear/disappear whenever I enter a specific trigger area.

Share this post


Link to post
Share on other sites

1) Create a trigger, keep it as is, should be set to "Present", and GROUP it to the unit named "General1". It should then say "Vehicle" I think on the trigger present thing.

2) Look up and learn to use the setPos command. Here you go:

http://community.bistudio.com/wiki/setPos

You can use that to "teleport" an object to any position you define. Just use a trigger to detect when it should execute.

Share this post


Link to post
Share on other sites

Thanks, but how do I GROUP stuff? And more important, how do I un-group stuff? Because sometimes when I spawn enemies they are grouped and I want to ungroup them and either way around.

I actually tried that setPos command before, but didnt get that to work. For instance, I put this inside a trigger:

table1 setPos (getPos marker1)
But it doesnt work.

Share this post


Link to post
Share on other sites
Thanks, but how do I GROUP stuff? And more important, how do I un-group stuff? Because sometimes when I spawn enemies they are grouped and I want to ungroup them and either way around.

If you mean in the editor?

Click the group tab,then click on a unit and hold mouse button and drag a line from one unit to another and release mouse button.

To un-group -click on a unit and hold mouse button,and just drag a line anywhere away from him and release mouse button and the group line will disappear. :cool:

Share this post


Link to post
Share on other sites

ck-claw got the grouping thing right.

setPos does work, however in the case of your example, since you're trying to retrieve the position of a marker, you use:

getMarkerPos "[i]markerName[/i]"

getPos doesn't work with markers, use that command instead. Also, whenever you refer to a marker, you have to put its name in quotes.

Share this post


Link to post
Share on other sites

I get this "getPos" to work with all the objects except the sound ones. I really want this alarm to kick in at the right place. Is there anyway I can "spawn" a sound instead of moving it?

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  

×