Staredit Network

Staredit Network -> UMS Assistance -> Having Technical Difficulties.
Report, edit, etc...Posted by Element-Nature on 2005-08-07 at 23:22:31
I am making a FPS or First Person Shooter map or on SC BW Sniper map.
I am making a scope.
i want it so wen u use the use scope beacon it makes the scope on ur location of your guy but there are 2 problems.
It will either center loc on ob and make it do nothing or if it does work (which i can do with some bf locations) i want it so wen u move scope goes away.
Help?
Report, edit, etc...Posted by RiShiN.rK on 2005-08-08 at 00:03:43
dunno how 2 help you with your first problem because i dunno how you did your trigger but for the 2nd problem with removing the scope when the person moves his/her unit use these triggers:


Condition:
player x brings at least 1 observer to anywhere
switch 1 is cleared

Action:
center location labled location 1 on terran marine for player x
set switch 1
preserve trigger

---

Condition:
switch 1 is set
player x brings exactly 0 terran marine to location 1

Action:
remove all observer for player x
center location on location 1
clear switch 1
Report, edit, etc...Posted by Element-Nature on 2005-08-08 at 13:21:48
But the location is always on the unit so it will never work.
Please Help some one.
Report, edit, etc...Posted by MapUnprotector on 2005-08-08 at 13:31:14
I'm not exactly sure what you are trying to do but I'll give you some advice, that can be changed easily to fit your needs.

Condition:
Bring any unit to scope beacon
switch 1 is cleared

Action:
set switch 1
move any unit at scope beacon back to other spot
center location A on unit
center view on location A
create observer at location A
preserve

Condition:
Commands 1 observer
switch 1 is set

Action:
Center location B on observer
Center view on location B
preserve

Condition:
Switch 1 is set
Brings 0 unit other than observer to location A

Action:
clear switch 1
remove/kill observer
preserve

That should work

The first trigger makes it so when you move a unit to the scope beacon, it moves the unit back, creates an observer at your main unit, and centers view there.

The second trigger just makes it constantly center a different location on the observer, and center view there

The third trigger is for detecting when the main unit leaves location A, which therefore means that the player has moved his unit, which makes the scope go away.

EDIT: The key to detecting when the main unit has moved, is to center a location on it ONCE, so that if that unit never moves it will always be on the unit. Yet, when you move the unit, it will be leaving the location, and the location isn't centered back on it.

I hope that's what you wanted.
Report, edit, etc...Posted by Element-Nature on 2005-08-08 at 13:33:47
TY TY TY!
This just might work!
Report, edit, etc...Posted by purple100 on 2005-08-08 at 13:36:05
So when you activate the beacon, it creates an observer that does nothing except helps you see?

EDIT: Trigs removed. Devilisk beat me to the punch.
Report, edit, etc...Posted by MapUnprotector on 2005-08-08 at 13:37:27
Yea, that's the same thing as mine, except I had an extra trigger that centers the view on observer, not sure if you wanted that though.
Report, edit, etc...Posted by Element-Nature on 2005-08-08 at 14:01:49
happy.gif
Thanks guys.

ADDITION:
Actually...
its not working.
i was wondering dev,could i meet u in SC and either talk to u about it or even have you take a look?please?
Report, edit, etc...Posted by MapUnprotector on 2005-08-08 at 14:43:51
How is it not working? You must be doing something wrong.
Report, edit, etc...Posted by Element-Nature on 2005-08-08 at 15:02:02
I dunno,isnt working....oddd
thats y i want u to look at it...
PLEASE!???
Report, edit, etc...Posted by PCFredZ on 2005-08-08 at 18:44:37
Post your map.
Report, edit, etc...Posted by VizuaL on 2005-08-08 at 19:54:42
actually i was helping him with this,the concept is bringing a unit to a beacon to make it so it creates a observer at a centered location on a unit. and when u bring it to a diff beacon, the observer dissapears.
Report, edit, etc...Posted by MapUnprotector on 2005-08-08 at 20:56:14
I thought he wanted it so that when you move your main unit, the observer disappears?

Element, post your map.
Report, edit, etc...Posted by VizuaL on 2005-08-08 at 20:57:49
i dunno, hes going in for a new method this time ermm.gif element post ur map, so they can fix it pinch.gif
Report, edit, etc...Posted by MapUnprotector on 2005-08-08 at 21:15:28
Okay I made a simple example following the triggers above that I posted exactly, and it works just like I thought it would

BTW: In the example map, if you don't want it to constantly center view on the obesrver then just disable/delete the second trigger.
Report, edit, etc...Posted by VizuaL on 2005-08-08 at 21:27:43
wow devilesk u actually did that. that was nice of u cool1.gif
Next Page (1)