I don't use CShop, but I guess it's using child entities for pivot handles. So you would need to recursively parse all entitynames right after loading ( this may help: http://www.blitzbasic.com/codearcs/codearcs.php?code=1170 )
Maybe you best collect all relevant names in an array or type container, so you'll be able to use them quickly without to use FindChild during the gameplay.
Now let's say you have an event triggering dummy child named
"radiationzone123", you probably already created an array that has all entities with names that that contain "radiationzone" stored in an array, all you need to do is something like:
Maybe you best collect all relevant names in an array or type container, so you'll be able to use them quickly without to use FindChild during the gameplay.
Now let's say you have an event triggering dummy child named
"radiationzone123", you probably already created an array that has all entities with names that that contain "radiationzone" stored in an array, all you need to do is something like:
for i=0 to num_radiationzones-1 if entitydistance(player,rad_zone(i))<15 then print "ouch, where does this sunburn come from all of a sudden?" endif next