GPS Tracking

  • Thread starter Thread starter Deathshadow
  • Start date Start date
D

Deathshadow

Guest
Ok i need this item called GPS tracking and when u cast the items ability called GPS tracking on a police car it adds ability track to the unit who casted it and whenever u use track it will ping the minimap where the police car you targeted is. Lasts 3 mins. i tried doing it and came nowhere close to wut it shoulda been it didnt even do anything :/
 
heres wat i think u should do. make an ability called track and an item called gps with a certain ammount of charges. then the person casts the ability on the police car and when u use the item it pings the car. i think that would be much better. give it a try and if u need help with it ill do so.
 
umm thas wut i said.... exept i want mine to be timed not charges. i need somebody to help me make this tho.

i tried doing it and came nowhere close to wut it shoulda been it didnt even do anything :/
 
So why don't you post what you HAVE done, so we can point you in the right direction? Read what I posted in your other thread please.

dArKz
 
Do something similar to this but for 2 minutes:
Code:
gps
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to gps track
    Actions
        Cinematic - Ping minimap for (Player group((Owner of (Casting unit)))) at (Position of (Targeted unit)) for 1.00 seconds
        Wait 2.00 seconds
        Cinematic - Ping minimap for (Player group((Owner of (Casting unit)))) at (Position of (Targeted unit)) for 1.00 seconds
        Wait 2.00 seconds
        Cinematic - Ping minimap for (Player group((Owner of (Casting unit)))) at (Position of (Targeted unit)) for 1.00 seconds
 
Events
Unit - A unit Finishes casting an ability
Conditions
((Ability being cast) Equal to GPS Tracking ) and ((Unit-type of (Target unit of ability being cast)) Equal to Police Car)
Actions
Cinematic - Ping minimap for (All players matching ((Owner of (Casting unit)) Equal to (Owner of (Casting unit)))) at (Position of (Target unit of ability being cast)) for 2.00 seconds

Im sure this is wayy off course.

o didnt know u posted one. ill try that
 
Ok, that trigger is fne, just put some waits in there so it will last 2 minutes
 
i have no clue wuts wrong with it but keeps pinging center of map.
 
Make sure you did:
Code:
(Position of (Target unit of ability being cast))
-Husky
 
> (Owner of (Casting unit)) Equal to (Owner of (Casting unit))

This is always true.
Use "convert player to player-group", with "owner of (casting unit)".

Also, I'm not sure there still is a "target unit" since the event is "finishes"...
Try with "starts the effect".
 
well my idea is the same, just easier to code. but if u want it timed i cant argue with that, its ur map =/
 
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Track
    Actions
        Set Target = (Target unit of ability being cast)
        Set TrackerUnit = (Casting unit)
        Player Group - Add (Owner of TrackerUnit) to Tracker
        For each (Integer A) from 1 to 180, do (Actions)
            Loop - Actions
                Cinematic - Ping minimap for Tracker at (Position of Target) for 1.00 seconds
                Wait 1.00 game-time seconds
        Player Group - Remove (Owner of TrackerUnit) from Tracker


Try this, not sure if it will work or not.
 
Im_On_56K said:
For each (Integer A) from 1 to 180, do (Actions)
Cinematic - Ping minimap for Tracker at (Position of Target) for 1.00 seconds
Wait 1.00 game-time seconds
I think it's not a good idea to call Wait inside a loop when the counter is a global var (as A or B are)

I would try doing something like this.
Create a variable array of unit-group, name it, for example, TrackedUnits

Here's the code that adds the unit to the TrackedUnits var, then waits, then removes it from the group again.
Code:
Events
    Unit - A unit (Starts the effect of an ability)
Conditions
    (Ability being cast) Equal to Track
    (Unit-type of (Target unit of ability being cast)) Equal to Police Car
Actions
    Custom Script - local unit tracked = GetSpellTargetUnit()
    Custom Script - local player tracker = GetOwningPlayer(GetSpellAbilityUnit())
    Unit group - Add (tracked) to (TrackedUnits[Player number of (tracker)])
    Wait 30.0 seconds
    Unit group - Remove (tracked) from (TrackedUnits[Player number of (tracker)])
And here's the ping. Every second loops for all players TrackedUnits and pings them for it.
Code:
Events
    Every 1.0 seconds
Conditions
    None
Actions
    Player Group - Pick every player in (All players controlled by a User player) and do
        Unit Group - Pick every unit in TrackedUnits[Player number of (Picked player)] and do
            Cinematic - Ping minimap for (Player group((Picked player))) at (Position of (Picked unit)) for 1.00 seconds
I think it needs WEU
 
well i tried ur thing but couldnt find anything called tracked or track. ill send u map in message.
 
Deathshadow said:
well i tried ur thing but couldnt find anything called tracked or track. ill send u map in message.
Track is whatever you've named your ability in the object editor.
tracked and tracker are local variables defined inside the trigger with the custom script local unit tracked=... and local player tracker=...
You need World Editor Unlimited to be able to reference local vars inside a GUI.
When you're asked to select the unit, search for "Advanced - JASS script" and then write down "tracked".
The same when you're asked to selec the player. Instead, write "tracker"

Hope it helps
 
this is the part i couldnt figure out but i have the normaly world editor not unlim.

tracked and tracker are local variables defined inside the trigger with the custom script local unit tracked=... and local player tracker=...

im dlining it now tho.
 
how did u get this??? i couldnt figure out how to get it.

Unit group - Add (tracked) to (TrackedUnits[Player number of (tracker)])

or this

Unit group - Remove (tracked) from (TrackedUnits[Player number of (tracker)])

or this

Unit Group - Pick every unit in TrackedUnits[Player number of (Picked player)]
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top