- Joined
- Mar 15, 2012
- Messages
- 2,885
There seems to be an issue here with GetLocalPlayer()?
[trigger=]
smartcast kick
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Pass me!
Actions
Set playerd = (Owner of (Triggering unit))
Set mousex[0] = 9.00
Set mousey[0] = 9.00
Custom script: if GetLocalPlayer() == udg_playerd then
Custom script: set udg_mousex[0] = GetMouseX()
Custom script: set udg_mousey[0] = GetMouseY()
Custom script: endif
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Human Mortar Team - Flare (Point(mousex[0], mousey[0]))
[/trigger]
Though this works.
[jass=]
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, R2S(GetMouseX()) + ", " + R2S(GetMouseY()))
[/code]
Could someone show me how to change it into something that doesn't disconnect others?
Edit: Maybe I posted in the wrong section... Though I really don't know how to make something like this besides a basic copy of what I saw.
[trigger=]
smartcast kick
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Pass me!
Actions
Set playerd = (Owner of (Triggering unit))
Set mousex[0] = 9.00
Set mousey[0] = 9.00
Custom script: if GetLocalPlayer() == udg_playerd then
Custom script: set udg_mousex[0] = GetMouseX()
Custom script: set udg_mousey[0] = GetMouseY()
Custom script: endif
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Human Mortar Team - Flare (Point(mousex[0], mousey[0]))
[/trigger]
Though this works.
[jass=]
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, R2S(GetMouseX()) + ", " + R2S(GetMouseY()))
[/code]
Could someone show me how to change it into something that doesn't disconnect others?
Edit: Maybe I posted in the wrong section... Though I really don't know how to make something like this besides a basic copy of what I saw.
Last edited: