Called by BSP?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Called by BSP?

Post by Master-Of-Fungus-Foo-D »

in many SP, and one MP (hunt) maps is some whered code... called by the bsp? How do you call something by BSP? i thought you couldnt code anything in the bsp? Im confused, as ive been many times...

Code: Select all

almost_there1:
   //called by BSP
    local.player = parm.other
    if ( (local.player.dmteam != "allies") || (level.perimeter_breached == 1) )
      end
      
    iprintlnbold "The Allies have breached the perimeter!"
    level.perimeter_breached = 1
end
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

Simple. For The Hunt, they created a trigger_multiple with a key of setthread and a value of almost_there1.
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

no, why does it sya called by BSP? (im not an idiot, i know how to do this, why does it say called by bsp tho?)

edit- Ok i admit, youre right about the trigger, but wy dopes it say called by BSp in the script?also if you look in m5l2.scr it says that too....
Last edited by Master-Of-Fungus-Foo-D on Tue Apr 05, 2005 12:09 am, edited 1 time in total.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
Deutsche Dogge
First Lieutenant
Posts: 183
Joined: Wed May 07, 2003 11:50 pm
Location: Quebec
Contact:

Post by Deutsche Dogge »

Simply because the trigger thread is set in the bsp and not with waittill trigger or setthread in the scr. So basically you can say it's "called by bsp". :wink:
Image
Click sig to visit the alternation modding community
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

That is just a comment they put in to let anyone viewing the script know that the thread is being called from the map and not the script itself.
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

man these are some fast responses :P

(sry, im an idiot i guess after all :P)
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
Deutsche Dogge
First Lieutenant
Posts: 183
Joined: Wed May 07, 2003 11:50 pm
Location: Quebec
Contact:

Post by Deutsche Dogge »

Master-Of-Fungus-Foo-D wrote:...(sry, im an idiot i guess after all :P)
Naaah, you just gotta let some time for the lamps to heat up... :lol:
Image
Click sig to visit the alternation modding community
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

mmm, i guess mine is a wet match in a dark cave?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
Deutsche Dogge
First Lieutenant
Posts: 183
Joined: Wed May 07, 2003 11:50 pm
Location: Quebec
Contact:

Post by Deutsche Dogge »

Master-Of-Fungus-Foo-D wrote:mmm, i guess mine is a wet match in a dark cave?
I'd say you are too young to get it. :lol:

transistors vs lamps :wink:
Image
Click sig to visit the alternation modding community
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

it is possible to do commands from the bsp for example lets say you have an effect like models\emitters\pipe_steam.tik and it needs for you to do

$mysteam anim start

you can simple put key: anim value: start in the entity window in radaint and it will be turned on in the map I have seen that done also with a water wheel that was a script_object and also a prefab it had a rotation command done that way so all you had to do was put the prefab in your map and tada a working water wheel
Image
Post Reply