Comrades in Arms Discussion Board
Game Logics vs Empty Objects - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: Game Logics vs Empty Objects (/showthread.php?tid=3147)



Game Logics vs Empty Objects - Phantom - 10-23-2015

Since game logics have a certain amount of group limits and empty objects don't. I guess for precise spawn locations it might be better to use Empty Objects then delete them all afterwards?


I already have game logic locations grouped up for home unlimited though I was wondering how much calculations and resources do game logics and empty objects use.


Re: Game Logics vs Empty Objects - Stagwine - 10-23-2015

I haven't noticed any noticeable performance impact, unless the number of objects is really astronomical (I'm talking about static objects with no interaction with player, like sandbags, furnitures, small items, etc). I haven't much messed with game logics, but again, small number shouldn't affect.

If the object is for eye candy only and no interaction/fancy explosion effect is required and you want to play it safe, add

Code:
this enablesimulation false;

to the objects init field.


Re: Game Logics vs Empty Objects - Phantom - 10-23-2015

For stratis I placed 169. Once I get to Altis, there'll probably 1000+ . I'm using them as random spawn positions for players inside buildings (which is why I didn't use markers since you can't place those precisely on building locations). After players have spawn, I just delete them all. I guess random empty objects might be more convenient since they don't need to be grouped unlike gamelogics.


Re: Game Logics vs Empty Objects - Outlawz7 - 10-23-2015

You might wanna look into finding your positions with code, placing 1000+ objects is kind of pedestrian.


Re: Game Logics vs Empty Objects - Phantom - 10-23-2015

I want the building position, but I also want it precise enough to fit 16 players in one room in a 4x4 grid making sure that no one clips through a building or fall through something and etc.

I'm not sure how many bulidingPos some buildings have like huts and such.


Re: Game Logics vs Empty Objects - Stagwine - 10-24-2015

Hmm. Do you need real visible objects, like furniture (office desks, chairs, etc) to decorate houses for additional aesthetic pleasures/horrors, or do you only need to determine spawn position inside house? 




Re: Game Logics vs Empty Objects - Phantom - 10-24-2015

Just spawn positions. If I want aethestics, I'll wait for Eden so its easier to place stuff. I just used a 10CM sphere with a setPosASL (and a script to debug so I can execute that to spawn dummies to see whether or not they clip through walls). I deleted all the 10 CM spheres after executions of spawns are completed.