Alliedassault           
FAQ Calendar
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page Scripting Problem
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old
  (#4)
G3mInI is Offline
Senior Member
 
Posts: 270
Join Date: Mar 2002
 Send a message via ICQ to G3mInI  
Default 09-01-2002, 12:45 AM

heres a simple script example that should help you out ...


first call it by a thread somewhere in the beginning of your map.scr file...

thread moving_object

moving_object:

$movingobject time 3 //sets the time in seconds object will move the distance scripted

$object_ trigger waittill trigger

$movingobject moveup 64
$movingobject waitmove // this line waits for the object to complete the move before moving on to the next line

$object_ trigger waittill trigger // after it has moved up, now wait for the same trigger to be pressed again

$movingobject movedown 64 // move it down
$movingobject waitmove // wait for the move again

thread moving_object // repeats the process in an endless loop


hope that helps ya

-g3mini
  
Reply With Quote
 



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.