Staredit Network

Staredit Network -> UMS Assistance -> Changing a units sight
Report, edit, etc...Posted by Ninebreaker on 2005-08-06 at 16:57:43
How would you change a units vision using EUD?

EDIT: Would this work?

Setdeaths(p4, setto, 10, -29415);

That should give a zealot 10 sight range right?
Report, edit, etc...Posted by SacredElf on 2005-08-06 at 17:13:58
i dont think so it can b done

edit: nvm im wrong

Setdeaths(p4, setto, 10, -29415); do u tested it alredy??
Report, edit, etc...Posted by Ninebreaker on 2005-08-06 at 17:15:09
In memcalc it says you can happy.gif

I think that should work though, ima test mellow.gif
Report, edit, etc...Posted by SacredElf on 2005-08-06 at 17:18:42
im a noob whit memcalc but it says to me (Sight Range) This trigger is disabled because you can't set P 9-12 deaths.
Report, edit, etc...Posted by Ninebreaker on 2005-08-06 at 17:20:23
No, no it worked, ill post a screenie soon happy.gif

EDIT: SCREENIE AWAY!

user posted image

NOTE: The vision is 2, not 10 in this
Report, edit, etc...Posted by SacredElf on 2005-08-06 at 17:25:59
Niceee, can u tell me the how do u use memcalc.. do u used unit editor or what pinch.gif i just dont get memcalc
Report, edit, etc...Posted by Ninebreaker on 2005-08-06 at 17:28:17
How can you not get it?

1)In the first dropdown box select what you want to modify on the unit

2)In the second drop down bbox scroll down into the units.dat and select a unit

Just look at the very end of what it says there.

It gives you: You need to modify the 1 byte value starting on byte 2 of deaths of -29415 for player 4 .

Only look at deaths of -29415 for player 4 .
Trigger: Setdeaths(p4, setto, 2, -29415);

The 2 is what sight you want to give the unit (cant be over 11)
And the -29415 is the Zealot part (i dont know why)
Report, edit, etc...Posted by SacredElf on 2005-08-06 at 17:34:15
k, now i get it thnx. finally i can use it happy.gif
this look more like a chat than a tread closedeyes.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-06 at 17:53:30
QUOTE
It gives you: You need to modify the 1 byte value starting on byte 2 of deaths of -29415 for player 4 .

Only look at deaths of -29415 for player 4 .
Trigger: Setdeaths(p4, setto, 2, -29415);

The 2 is what sight you want to give the unit (cant be over 11)
And the -29415 is the Zealot part (i dont know why)


Saying SetTo(2) sets byte 1 to 2. What that trigger does is sets the unit on byte 1 to 2 sight range, and blinds the rest.

As stated, sight range can't exceed 11.
Report, edit, etc...Posted by SacredElf on 2005-08-06 at 17:57:45
how do u change hex to dec??
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-06 at 17:58:59
Use Windows Calculator (Start>Accessories>Calculator) in Scientific mode. You can convet from hex, dec, octal, and binary.
Next Page (1)