Sign in to follow this  
Followers 0
antocro

Error

6 posts in this topic

We need a script.....

 

And that basically means you use the same targetname for more than one entity, easy fix unless its a script origin :)

0

Share this post


Link to post
Share on other sites

Dear Please, try and figure out what's causing the error yourself and see if you can fix it before making several threads on things with easy fixes. (Which most people could figure out without even asking anyone)

0

Share this post


Link to post
Share on other sites

Not really, just redo the targetnames

main()
{
    maps\mp\_load::main();
    
    ambientPlay("unknow");
    
    game["allies"] = "marines";
    game["axis"] = "opfor";
    game["attackers"] = "axis";
    game["defenders"] = "allies";
    game["allies_soldiertype"] = "desert";
    game["axis_soldiertype"] = "desert";
 
    thread fire();
    thread spikes();
}

fire()

{

fire1 = getent("fire1","targetname");
level._effect[ "fire" ] = loadfx( "fire/firelp_med_pm" );
maps\mp\_fx::loopfx("fire", (fire1.origin), 3, (fire1.origin) + (2108, 1192, -1828));

fire2 = getent("fire2","targetname");
level._effect[ "fire" ] = loadfx( "fire/firelp_med_pm" );
maps\mp\_fx::loopfx("fire", (fire2.origin), 3, (fire2.origin) + (2956, 1184, -1836));

}

spikes()

{

trigger = getent("trigger_spikes","targetname");
object = getent("spikes","targetname");
killtrigger = getent ("killtrig" , "targetname");
trigger waittill ("trigger" , player );
trigger delete();
while(1)
{
killtrigger enablelinkto ();
killtrigger linkto (object);
object movez(16, 3, 1, 2);
object waittill("movedone");
wait(2);
object movez(-16, 3, 1, 2);
object waittill("movedone");
wait(1);
}
}
0

Share this post


Link to post
Share on other sites

you have more than one script_brushmodel or trigger with the same targetname.

0

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  
Followers 0