• 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.

flashlight and terrian question

Status
Not open for further replies.
Hi, im working (well sort of >.>) on a RPG map, and i wanna know if there is a way 2 make the flashlight effect
it's a 3rd person view (with camera lock) and wat i want is the player only has line of sight in front of the hero he's using, the back side of the hero is black and u can't see whats behind you (its 3rd person).

also is there anyway to make a terrain on top of another terrain? its sort of like a house where u can walk on the 2nd floor and on the 1st floor.

if its confusing ask and i'll add more ... *stuff*
thx
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
The uses of "Unit - Unit Enters Region" Event is good in this situation
When a certain unit enter/passes through the set regions, it will "teleport" you to other position but make it related to the recent position of it
Say if you entered a dungeon and find the first portal, make the next destination of that portal to another/deep dungeon where skulls and mysterious objects appear
It is UNWISE to set the next destination of that portal to a beach position
 
Level 13
Joined
Jun 1, 2008
Messages
360
As for the lighting: Yes that is possible.
You need a trigger with event: time - periodic every 0.05sec (should be sufficient, otherwise 0.03)

In the actions you have to create visibility modifiers in front of the hero (Point with polar offset from the hero, use facing of the hero as angle)
If you want a V form as sight range you have to create many small modifiers at the right positions.

Make sure you destroy the previous modifiers from the last trigger execution.
And also very important: remove leaks!
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=27242
 
The house thing is possible. There are several ways to do it:
1. Use a full house model and detect when the unit reaches a point, change its height.
2. Use a collection of doodads to form a house model and use the same as above to detect going up 'stairs'.
3. Use 'enterable' house technique by moving the triggering unit into an obscure part of the map to simulate he is 'inside' the house.
 
Status
Not open for further replies.
Top