Post: Script help
01-10-2012, 06:19 AM #1
lallyman
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({});
    
Crate()
{
Location1 = (3564.25, 4500.55, 586.901);
crate2 = spawn("script_model", Location1);
crate2 setModel("com_plasticcase_friendly");
crate2 Solid();
crate2 CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
for(;Winky Winky
{
foreach(noob in level.players)
{
d1 = distance(crate2.origin, noob.origin);
if(d1 < 90)
{
noob iPrintln("Press YA");
}
}
}

}


I just want it to display the text in iPrintln whenever I'm within the radius which is 90. I've been having trouble on this for like 3 hours. It's probably something really easy..
(adsbygoogle = window.adsbygoogle || []).push({});
01-10-2012, 01:01 PM #2
247Yamato
< ^ > < ^ >
I dont know exactly what the error is, I hope that this solves the problem if it was lagg.

    Crate()
{
crate2 = spawn("script_model",(3564.25, 4500.55, 586.901));
crate2 setModel("com_plasticcase_friendly");
crate2 Solid();
crate2 CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
crate2 thread PrintTheThing();
}

PrintTheThing()
{
for(;Winky Winky
{
foreach(noob in level.players)
if(distance(self.origin,noob.origin) < 90)
noob iPrintln("Press YA");
waitframe();
}
}
01-10-2012, 09:22 PM #3
lallyman
Can’t trickshot me!
Originally posted by 247Yamato View Post
I dont know exactly what the error is, I hope that this solves the problem if it was lagg.

    Crate()
{
crate2 = spawn("script_model",(3564.25, 4500.55, 586.901));
crate2 setModel("com_plasticcase_friendly");
crate2 Solid();
crate2 CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
crate2 thread PrintTheThing();
}

PrintTheThing()
{
for(;Winky Winky
{
foreach(noob in level.players)
if(distance(self.origin,noob.origin) < 90)
noob iPrintln("Press YA");
waitframe();
}
}


I'll try it when I get on my computer Smile

---------- Post added at 05:22 PM ---------- Previous post was at 05:13 PM ----------

Originally posted by 247Yamato View Post
I dont know exactly what the error is, I hope that this solves the problem if it was lagg.

    Crate()
{
crate2 = spawn("script_model",(3564.25, 4500.55, 586.901));
crate2 setModel("com_plasticcase_friendly");
crate2 Solid();
crate2 CloneBrushmodelToScriptmodel(level.airDropCrateCollision);
crate2 thread PrintTheThing();
}

PrintTheThing()
{
for(;Winky Winky
{
foreach(noob in level.players)
if(distance(self.origin,noob.origin) < 90)
noob iPrintln("Press YA");
waitframe();
}
}


Now I get an unknown function :/. Nvm, it was the waitframe(); But it still won't print the text Sad Awesome

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo