Following on from my last script:
hereThis is the collisions for this script. You can just add The nesscery stuff into the script as i quote from the same GMC topic
i have worked out collisions! (for your AI) just add these codes where i say
[CODE]
/////////////////////////////////////////
*Create Event*
//////////////////////////////////////////
collision=false//initates the variable/trigger which is set to false
/////////////////////////////////////////
*Step event*/ //i can't explain what this does else my codebox mucks up
/////////////////////////////////////////
if distance_to_object(argument0)<2 and collision=false
{
alarm[0]=1
collision=true
}
/////////////////////////////////////////
*Alarm0*/ // add in the "position_meeting" ELSE Bracket after "done"
/////////////////////////////////////////
if collision=true
{
alarm[1]=30
}
////////////////////////////////////////
*alarm1*
//////////////////////////////////////////
collision=false //resets the variable
[/code]
Ok so i will explain what you up in argument0. Make a new object called par_solid. this is a parent. when you open a static (unmoveable) objects properties. where it says parent add par_solid so it has all the effects of par_solid
Labels: 3D - Advanced