Now say I place 2 of these prefabs over my map, I obviously want each block to move to their desired script_origin when needed to.
Code: Select all
motionBlocks()
{
blocks = getentarray("block","targetname");
if(isdefined(blocks))
{
for(i=0;i<blocks.size;i++)
{
blocks[i] thread block_logic(i);
}
}
}
block_logic(num)
{
target = getent(self.target,"targetname");
self moveto(target.origin,1.0);
}
If there is no way to get around this in script, does anybody know how to place a prefab in the map, and then edit it, without editing the prefab file. Thanks if you can help.