Jump to content
Sign in to follow this  
chris330

Game Logic Relationship to Real Vehicles

Recommended Posts

Dear All,

I have had an idea about a new approach to a particular porblem I am currently working. I need some help however. If I set a game logic to a vehicle's [0,0,0] position will the game logic interfere in anyway with that vehicle with regards to collisions and such like or can a game logic occupy exactly the same space as a vehicle with no geometry or game engine issues? I want the game logic to occupy exactly the same position as the vehicle's [0,0,0] point with supreme accuracy (i.e. I do not want the game engine to automatically displace the logic by a few millimeters because it cannot cope with two units being in exactly the same position).

I would be most grateful for any help offered smile_o.gif

Share this post


Link to post
Share on other sites

If you look in CfgVehicle under class logic, it has this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">model = "empty";

AFAIK it has no geometry to collide with? Although it's easy enough to test, just setpos your objects and logics together. Wait a few seconds then compare thier positions?

Share this post


Link to post
Share on other sites

Game logics have no 'physical bodies' to them, and do not interfere with other units/objects in any way, as far as I've seen. There are lots of scripts that place game logics at or near vehicles (eg for cameras) and do not interfere with them in any way. I've used invisible targets (an addon) and placed them exactly on a vehicle with no ill effects.

Share this post


Link to post
Share on other sites

Thanks again gentlemen, your info has been most useful wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×