• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Setting visibility to a unit

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
i have this script: call SetDayNightModels("", "")
and i really don't know what exactly it does but it made my map a lot scarier.

but since i have used this script i have relied on torch, light, etc for visibility. but what i wanted actually was for

example: lets use the model TorchHumanOmni.mdx from the hive

1. the owner of the villager; lets call him player1 :), has this model attach to the overhead of his unit, making his unit to have a small amount of visibility around him

2. the ally or enemy of player1; lets call him player2 :), is near player1's unit. naturally, player2 should notice player1's unit since its too visible in the dark because of the model attached to player1's unit.

3. how can i set that the amount of visibility gained by player1's unit can only be seen by player1 and would not be visible to other players, also stat - sight radius doesnt work, i guess its because of the script
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
i have this script: call SetDayNightModels("", "")
and i really don't know what exactly it does but it made my map a lot scarier.

but since i have used this script i have relied on torch, light, etc for visibility. but what i wanted actually was for

example: lets use the model TorchHumanOmni.mdx from the hive

1. the owner of the villager; lets call him player1 :), has this model attach to the overhead of his unit, making his unit to have a small amount of visibility around him

2. the ally or enemy of player1; lets call him player2 :), is near player1's unit. naturally, player2 should notice player1's unit since its too visible in the dark because of the model attached to player1's unit.

3. how can i set that the amount of visibility gained by player1's unit can only be seen by player1 and would not be visible to other players, also stat - sight radius doesnt work, i guess its because of the script

u add omnilight with special effect? if yes then maybe work local special effect with getlocalplayer
 
Level 9
Joined
Apr 7, 2010
Messages
480
@Maker, doesnt work. like i said, sight radius doesn't work.
@shadowvzs, mind triggering it out? i really dont understand scripts
 
Status
Not open for further replies.
Top