Whenever treyarch spawns a model tru scripts they add
self.script_noteworthy = "blablabla";
what is this for? is this the target name or something?
dunno exactly, but I think it's a sort of targetname, yes.
I guess it can be used with getEntArray()
Code:
D:\Steam\steamapps\common\call of duty black ops\raw\maps\mp\gametypes\_supplydrop.gsc (3 hits)
Line 237: crate_ents = GetEntArray( "care_package", "script_noteworthy" );
Line 819: crate_ents = GetEntArray( "care_package", "script_noteworthy" );
Line 855: crate.script_noteworthy = "care_package";
And what does getEntArray() ? : P
(08-24-2011, 22:44)Tomsen1410 Wrote: [ -> ]And what does getEntArray() ? : P
It gets a group of entities
for example
Code:
players = getEntArray( "players", "targetname" );
will get all players
(08-24-2011, 23:10)iAegle Wrote: [ -> ] (08-24-2011, 22:44)Tomsen1410 Wrote: [ -> ]And what does getEntArray() ? : P
It gets a group of entities
for example
Code:
players = getEntArray( "players", "targetname" );
will get all players
In this case it gets all entities with <entity>.targetname = players, and puts them in an array.