[Resources] Script Library

This forum is for uploading new building blocks for maps such as tags and new models. Please do not post any copyrighted material (ie, models/textures from other games).
User avatar
plushiefire





Posts: 618
Joined: Thu Nov 23, 2006 12:10 pm
Location: Canada

Post by plushiefire »

-DeToX- wrote:

Code: Select all

(script continuous teleporter
 (begin
  (object_teleport (list_get (volume_return_objects <trigger_volume>) 0) <cutscene_flag>)
 )
)
SoL: ta da
SoL: it will teleport any object that goes into the zone :roll:
What zone exactly?
Come check out Team 3volved.
Image
Hawaiian Modder




Pi Connoisseur

Posts: 2154
Joined: Sat Nov 26, 2005 7:17 pm
Location: In a cave smokin up with tupac and big foot.

Post by Hawaiian Modder »

plushiefire wrote:
-DeToX- wrote:

Code: Select all

(script continuous teleporter
 (begin
  (object_teleport (list_get (volume_return_objects <trigger_volume>) 0) <cutscene_flag>)
 )
)
SoL: ta da
SoL: it will teleport any object that goes into the zone :roll:
What zone exactly?
Can someone answer this? :?
Image
Thanks lej for the sig.
Dr.Cox wrote:I like Cox.
User avatar
WastingBody





Posts: 195
Joined: Mon Sep 19, 2005 5:07 pm

Post by WastingBody »

You replace <trigger volume> with a trigger volume in the map. A death zone is one example of a trigger volume.
Image
User avatar
CCB_Jahrizzy
Readers Club




Coagulator

Posts: 146
Joined: Sun Jul 29, 2007 12:07 pm
Location: "stranded"
Contact:

...

Post by CCB_Jahrizzy »

could it be possible to make a scrpit to make a bloc into something that can be like a flag

like when you get in a certian area you score a point and it respawns

basically make a hockey puck into a flag becuase
if its a weapon
it ownt move like a hockey puck
so it needs to be a bloc

HEHLPPLEASE !!!
lol
Image
[Official CCB! website] [Stranded pt. 1 ]
Gamertag = ccb Jahrizzy
Spwee1494





Posts: 91
Joined: Thu Aug 16, 2007 10:47 am
Contact:

Post by Spwee1494 »

Need...Script....for...3rd person camera trac...
&#57344;H2MoDD3R&





Posts: 8
Joined: Sun Aug 19, 2007 12:18 pm

Post by &#57344;H2MoDD3R& »

plushiefire wrote:
-DeToX- wrote:

Code: Select all

(script continuous teleporter
 (begin
  (object_teleport (list_get (volume_return_objects <trigger_volume>) 0) <cutscene_flag>)
 )
)
SoL: ta da
SoL: it will teleport any object that goes into the zone :roll:
What
If i replaced <trigger_volume> with ((sleep_until (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) (unit_has_weapon (unit (list_get (players) 0)) objects\weapons\melee\energy_blade\energy_blade) 0)

Would it teleport me when i pick up a sword?

-sorry, im not good at scripting
User avatar
bumlove




Literarian 250

Posts: 305
Joined: Tue May 29, 2007 1:17 pm
Location: Islamic fundamentlist capital of europe, seriously my home town is a hole

Post by bumlove »

I have lots of lights (blocs) that are referenced as script objects (called "static"_"0-35") and they spawn as/by script object spawn setting 256 (not at start up or by script but 256 whatever that is) I would like to destroy them by a switch (called "static_36" again a 256er ) and have them respawn again 2 minutes later
could someone type up the basic script for destroying static 0-2 with the switch (static 36) and respawning them again after 1minute and I'll do the rest
never underestimate the predictability of stupidity
User avatar
Stunts





Posts: 132
Joined: Thu Sep 28, 2006 5:43 pm
Location: Texas
Contact:

Post by Stunts »

ok i've been wrking with scripting with switches and i'm stumped. I scanned the sp scripts and finally found the part i was looking 4 sumthn like (sleep_until (< 0 (device_group_get lock1 ))1 ). Now i'm tryn to make on off switches and i havnt had much luck and now i'm having to ask more experieced people so i can perfect my skills. Heres my script that i want to fix (hopefully two)

Code: Select all

(script continuous cutscene_bridge
(sleep_until (< 0 (device_group_get switches ))1 )
(device_set_never_appears_locked door1 1)
(device_set_position door1 1 )
(sleep_until (< 0 (device_group_get switches ))0 )
(device_set_position door1 0)
(device_set_never_appears_locked door1 0)
)

Code: Select all

(script continuous door_lock
(sleep_until (< 0 (device_group_get lock1 ))0 )
(device_set_never_appears_locked lockdoor 0)
(device_set_never_appears_locked lockdoor1 0)
(device_set_never_appears_locked lockdoor2 0)
(device_set_never_appears_locked lockdoor3 0)
(device_set_never_appears_locked lockdoor4 0)
(sleep_until (< 0 (device_group_get lock1 ))1 )
(device_set_never_appears_locked lockdoor 1)
(device_set_never_appears_locked lockdoor1 1)
(device_set_never_appears_locked lockdoor2 1)
(device_set_never_appears_locked lockdoor3 1)
(device_set_never_appears_locked lockdoor4 1)
)
Also wanto mention that I hope that i'm not making an idiot of myself because of some of the scripting on switches i guessed at.

One more question and im done. Can i teleport someone that steps into a trigger and then hits a switch, thus teleporting them to another spot using either im guessing a flag or another trigger? I'm tryn to use the teleporter device you see when mc gets teleported to control room, but they didnt actually teleport him it was just a animation, or biped spawning , something like that. But anywayz im using a switch that activates that device and i want it to teleport him at dsame time. Ok il shut up now.

Thanks in advance,
Stunts
I love Halo!!!!!!!!!!!
Bad Microsoft! They deleted the pic i used for my signicture pic!
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

for your third.

Code: Select all

(Script startup/continuous TeleportOnSwitchReturn
 (sleep_until (volume_test_objects <trigger volume> (players)) 15)
  (sleep_until (device_group_get switches**) 1)
   (volume_teleport_players_not_inside <trigger volume> <flag>)
)
**I do not remember that script as of now, so I just used yours.

For your first two, Elaborate more?
User avatar
Stunts





Posts: 132
Joined: Thu Sep 28, 2006 5:43 pm
Location: Texas
Contact:

Post by Stunts »

ok the first script unlocks the door and opens it and then i wanttom ake it so if u hit it again the door closes, at the moment i just put sleep 150 (i didnt put that on last post cause i modified it for a new build im making rite now), and also the door locks after it closes. Alright npow the second one locks all the doors on the script that u c, and i want to make it so the swithc unlocks them after u hit it again.

Also i am a little confused on another thing for the 3rd script.

where it says

Code: Select all

 (volume_teleport_players_not_inside <trigger volume> <flag>) 
)
y am i teleporting people not in the trigger? and also they are being teleported to the flag?
I love Halo!!!!!!!!!!!
Bad Microsoft! They deleted the pic i used for my signicture pic!
Post Reply