Texture question
Moderator: Core Staff
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
No, that didn't work.
Its odd because out of 5 triggers in my map, only these two don't work. And they're in the same room, and both of them are traps. (it's a deathrun map).
Would you like to see anything to fix the problem?
Its odd because out of 5 triggers in my map, only these two don't work. And they're in the same room, and both of them are traps. (it's a deathrun map).
Would you like to see anything to fix the problem?
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Texture question
If you are NOT getting errors, then we can assume the entities are fine.
So, next thing is to test the loop.
This will test to see if the trigger is actually being triggered.
Make sure you have "developer" set to 1 and look at your console before and after pressing the trigger.
When you load, before you click the trigger type "/error" in console and make sure it states "before".
Then press the trigger and check "/error" again, it should state "after".
---
If you get "after" then we can assume the trigger is working. So, next remove the "if player isdefined" stuff and just print straight to the level, do not print to the player.
Report back when done.
So, next thing is to test the loop.
Code: Select all
while( isDefined( bounce ) && isDefined( trig ) )
{
setDvar("Error", "Before");
trig waittill( "trigger" , player );
setDvar("Error", "After");
Make sure you have "developer" set to 1 and look at your console before and after pressing the trigger.
When you load, before you click the trigger type "/error" in console and make sure it states "before".
Then press the trigger and check "/error" again, it should state "after".
---
If you get "after" then we can assume the trigger is working. So, next remove the "if player isdefined" stuff and just print straight to the level, do not print to the player.
Report back when done.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: Texture question
Try and recompile your map.
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
I did that, but that didn't work.
One odd thing is when i compile the bsp, it finishes in like 5 or 6 seconds if I don't make any changes to my map. Is it suppose to happen?
Its weird because the trigger was actually working before, and now its not.
One odd thing is when i compile the bsp, it finishes in like 5 or 6 seconds if I don't make any changes to my map. Is it suppose to happen?
Its weird because the trigger was actually working before, and now its not.
Re: Texture question
darkpheonixz4x wrote:I did that, but that didn't work.
One odd thing is when i compile the bsp, it finishes in like 5 or 6 seconds if I don't make any changes to my map. Is it suppose to happen?
Its weird because the trigger was actually working before, and now its not.
Sometimes Cod4Radiant dont accept when u change the the size or the possition of the trigger
Happens to me many times -.-
Try to delete and add a new one...
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
I tried what you said, but still no luck.
Would you like anything to see that could help resolve my problem?! It's really frustrating.
Would you like anything to see that could help resolve my problem?! It's really frustrating.
Re: Texture question
send us your map
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
Do you want the .map or the .ff? Along with the script?
Re: Texture question
send everything
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
I have attached the .map and .gsc
You do not have the required permissions to view the files attached to this post.
Re: Texture question
delete the caulk brush under the trigger, or make it bigger
Re: Texture question
Yes, do it. Looks like your trigger is conflicting with another brush. By the way, your woldspawn has a targetname "decision_trap3_trig"
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
Wow thanks! It was the caulk! I replaced it with clip and it worked fine
My next concern is that I made misc/model and chose a xmodel. I need it to move in my map, so i tried to make it a script/model.
It gave this error message: Entity NOT created, can't make a point entity out of brushes
Any ideas of what to do?
Its really important that the model moves.
My next concern is that I made misc/model and chose a xmodel. I need it to move in my map, so i tried to make it a script/model.
It gave this error message: Entity NOT created, can't make a point entity out of brushes
Any ideas of what to do?
Its really important that the model moves.
Re: Texture question
Don't touch misc/model if you want it movable. Just use script/model.
-
- CJ Newbie
- Posts: 51
- Joined: July 2nd, 2012, 11:15 am
Re: Texture question
Great I did that! But here comes the next error
Here's the script for my 3rd trap and a screenshot of my key/values of the trigger.
I get a script runtime error for "trig waittill ("trigger")".
What do i do?
Code: Select all
trap_3()
{
toilet1 = getEnt("trap3_toilet1","targetname");
toilet2 = getEnt("trap3_toilet2","targetname");
toilet3 = getEnt("trap3_toilet3","targetname");
trig = getEnt("decision_trap3_trig","targetname");
{
trig waittill ("trigger");
toilet1 movex(60,3,0,0);
toilet2 movex(60,3,0,0);
toilet3 movex(60,3,0,0);
}
}
I get a script runtime error for "trig waittill ("trigger")".
What do i do?
You do not have the required permissions to view the files attached to this post.
Who is online
Users browsing this forum: No registered users and 5 guests