HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

First Person Map help

08-11-2002, 04:53 AM#1
Guest
I'm making a first person map where you move with button keys, looks like this:

Forward: W
Left: A
Right: D
180 degree turn: S

I used the goblin merchant method of doing this which means the character you are using isn't selected, the goblin merchant is. My problem is getting my unit to attack. I need a way to make my non selected unit attack preferably using another button.

Any ideas? Thanx.
08-11-2002, 07:33 PM#2
Guest
Anyone??
08-12-2002, 05:17 AM#3
Guest
I'd tell you but then i'd have to kill you.
Just don't tell people you thought of this because i'm using this in my map <:D


New Variable -> Player Unit (Unit Array)
New Variable -> Targeted Unit (Unit Array)
New Item -> Fire(Hotkey(F))

Trigger (0) ---Setup---

Event -> varies

Condition -> varies

Action ->
Set PlayerUnit(X) == (the unit you want to control)

Trigger (1) ---Select---

Event -> Player X Selects Unit

Condition -> None

Action ->
Set (TargetedUnit(X) == No Unit)
Group - Select Every Unit in (Units Currently Selected by Player 1) and do Set (TargetedUnit(X) == (Picked Units)))
IF TargetedUnit(X) is Not Equal to Owned by Player 1
THEN do nothing
ELSE set TargetedUnit(X) == No Unit

Trigger (2) ---Fire---

Event -> Unit owned by player 1 Acquires an Item

Condition -> Item == Fire

Action ->
Issue Order Targeting A Unit - Order PlayerUnit(X) to Attack Once TargetedUnit(X)
Remove Item
Wait (varies)
08-12-2002, 05:43 AM#4
Guest
Thanx man.