Ritualistic Forums

Go Back   Ritualistic Forums > Ritual Entertainment Games > Star Trek Elite Force II > EF2 Editing Forum

Thread Tools Display Modes
Old 09-25-2003, 07:53 AM   #1
Join Date: Aug 2003
Location: UK
Posts: 32
Default Scripting Triggers

i have made a couple of scripts for my map but i was wondering (and this is really a question for BB) can you make a script start when a player walks through a triggger once or activates a trigger push or some thing and how would you write this in a script because i dont want the script to automatically script 2 seconds or whatever after the game starts
Cortex is offline   Reply With Quote
Old 09-25-2003, 08:28 AM   #2
Join Date: May 2002
Posts: 42
Default Re: Scripting Triggers

Let's say your map is named test.map. You have to make a file called test.scr that looks something like this:


void do_something();

void main()
<insert code that is supposed to be run after map loads>

void do_something()
<insert code that is supposed to be run, when trigger is activated>

Then place a trigger_once and give it a key named "thread" with a value of "do_something". As soon as the player walks through the trigger, the function do_something is executed.
Argyle is offline   Reply With Quote
Old 09-25-2003, 12:31 PM   #3
Level Designer
Join Date: Sep 2000
Location: Texas
Posts: 1,457
Default Re: Scripting Triggers

Looks right to me.
BrushBaron is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 12:21 PM.

Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.