Page 1 of 1
Casting to entity
Posted: Sat Jan 06, 2007 9:24 pm
by Rookie One.pl
Has anyone successfully attempted casting a variable to entity? In theory, this should allow to get ahold of any entity from within the script by its entnum. I've never made it work, though, all I get is a console error that says "cannot cast integer to entity".
Anyone?
Posted: Sat Jan 06, 2007 10:55 pm
by jv_map
The 'entity' command works via targetname, exactly the same as using $.
So instead of $player you could write (entity player). Casting via entnums can't be done in mohaa afaik

(although in fakk you could do this with * (like *1) .. this doesn't work in moh though

).
Posted: Sun Jan 07, 2007 10:38 am
by Rookie One.pl
Eeek.

That's useless, then.
Anyway, thanks.
