|
Re: c_scan and you pointer
[Re: PriNova]
#407368
09/12/12 02:36
09/12/12 02:36
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
"your" ist just an alias for "You". Changing this won't change anything.
What exactly is your problem, dd231? What does "not working" mean? Does it crash? Doesn't the you entity get invisible?
Please use code tags when posting code...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: c_scan and you pointer
[Re: Uhrwerk]
#407369
09/12/12 05:06
09/12/12 05:06
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
What do you want to achieve with this code?
Last edited by Ch40zzC0d3r; 09/12/12 05:06.
|
|
|
Re: c_scan and you pointer
[Re: dd231]
#407476
09/13/12 15:00
09/13/12 15:00
|
Joined: Jul 2008
Posts: 2,107 Germany
rayp
X
|
X
Joined: Jul 2008
Posts: 2,107
Germany
|
If i unterstood you right... I think c_scan will always set YOU to nearest entity found. But u want to check further entitys right? Maybe this thread helps you. http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=48405&Number=405484#Post405484Edit: Or react in a event to the c_scan fex
void _i_was_scanned()
{
if(event_type == EVENT_DETECT || event_type == EVENT_SCAN)
if(my.player_assign == 1) //or if(you)if(you.anything == my.anything) whatever
set(my,INVISIBLE);
}
..
action Whatever()
{
..
my.emask |= ENABLE_SCAN|ENABLE_DETECT; //maybe scan is enough dont know right now.
my.event = _i_was_scanned;
..
}
Last edited by rayp; 09/13/12 15:21.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
|