is there any trigger or what to just look at the door and doors open?
trigger help
Moderator: Core Staff
-
Levcek
- CJ Fan

- Posts: 129
- Joined: March 7th, 2010, 11:37 am
- Location: sLOVEnia, stajerska FTW
trigger help
am i got 1 question for ya that im looking for it -.-''
is there any trigger or what to just look at the door and doors open?
is there any trigger or what to just look at the door and doors open?
__________________________________________________________
THE MAPPER
__________________________________________________________

THE MAPPER__________________________________________________________

-
Rezil
- Core Staff

- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
Re: trigger help
Code: Select all
main()
{
thread look();
}
look()
{
trig = getent("NAME_OF_TRIG_TO_LOOK_AT","targetname");
trig_range = getent("NAME_OF_AREA_FROM_WHICH_YOU_LOOK_AT","targetname");
while(1)
{
trig_range waittill("trigger", player);
if((player islookingat(trig)) && (player istouching(trig_range)))
{
//Do stuff here
}
wait 0.1;
}
}
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.