Home   Help Search Login Register  

Author Topic: Trigger follow 5t truck  (Read 1990 times)

0 Members and 1 Guest are viewing this topic.

chrisb1220

  • Guest
Trigger follow 5t truck
« on: 21 Sep 2002, 20:29:10 »
How can I make trigger stay with a vehicle?

seanver

  • Guest
Re:Trigger follow 5t truck
« Reply #1 on: 21 Sep 2002, 20:37:37 »
Do you want a trigger to stay at the same position as a 5t truck?

Perhaps this'll work. Create a script

#loop

triggername setpos (getpos truckname)

goto "loop"

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Trigger follow 5t truck
« Reply #2 on: 21 Sep 2002, 22:39:38 »
but u cant have a loop widout delay so it wil b

Code: [Select]
#loop
triggername setpos getpos truckname
~0.00000001
goto "loop"

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

chrisb1220

  • Guest
I'm a newbie with this
« Reply #3 on: 21 Sep 2002, 23:25:10 »
I'm sorry, i'm kinda new with scripts so what do I save the script as?

Kaliyuga

  • Guest
Re:Trigger follow 5t truck
« Reply #4 on: 21 Sep 2002, 23:27:09 »
  Hmmm but the thing is .. why use a script at all.. you can make a trigger.. shove it anywhere on the island you want.. and simply use a distance command for it's condition ;)

 of course I'm not sure of the exact situation you're using this for... but I'm sure I could think of a condition dependent on the 5t truck for any situation ;)

almost anything  can be accomplished through triggers that you can do with a script... and too much scripting is overkill.. in MHO ;D     (*cough* LCD *cough* ::) )    :D

oh.. BTW distance would look something like this if yer not familiar with it:

unitname distance truckname < X  
you can use this with any two named objects or units to detect when they are less than X meters away.. conversely you could use it to determine when they are greater than X meters away...  ;)

setting this as the condition of a trigger will cause the activation line of that trigger to become active upon the distance being met ;)

hope this clears it up for ya.. if not .. give details and I'm sure someone can figure it out :toocool: :dude:


chrisb1220

  • Guest
Re:Trigger follow 5t truck
« Reply #5 on: 21 Sep 2002, 23:49:23 »
I think I want to stay with the script.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Trigger follow 5t truck
« Reply #6 on: 22 Sep 2002, 00:48:44 »
Code: [Select]
almost anything  can be accomplished through triggers that you can do with a script... and too much scripting is overkill.. in MHO     (*cough* LCD *cough*  )
 ::)
 
scripts are not overkill - if i wil b usin trigers instead of scripts in my 7 objectives misions - u wil c wat overkill is  :P  ;D (i would have told u 2 f00k off but its not alowed in da forums ) ;)  ;D (J/Kin)

Quote
I'm sorry, i'm kinda new with scripts so what do I save the script as

save it as a sqs file - write it in notepad and wen u wanna save it press all files and put a .sqs extension

wen u wanna exec it put

[] exec "scriptname.sqs"

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Trigger follow 5t truck
« Reply #7 on: 22 Sep 2002, 01:08:00 »
lmao @ you guys! crazy b*stards.

Anywayz'aa - in this particular case I'd suggest a looped scroll for a repeated trigg.
as the script is faster & more reliable when it comes to "glue"  :o :D

 ...especially if we talk moving (motorized) vehicles!

If yer mission weights some serious pounds, triggers sometimes
tend to act slower then looped scrolls, thus: make a scroll allthough it sucks!

Here's how to create a script and save it the proper way:


------------

  • ALT+TAB out to Windows
  • Open up NOTEPAD, the text editor program
  • Type in the codes
  • select *ALL FILES* as saving type
  • Then save as Loop.sqs
  • And remember to save it in this folder:
OFP / USERS / YourUserName / Missions / NameOfMission <----THAT ONE

Then just let some d00d execute the script from his INIT field :


 [ ] exec "Loop.sqs"

...and *RABALLAH-MULLAH* - you have a running scroll  :D 8) :-* ;D



Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Trigger follow 5t truck
« Reply #8 on: 22 Sep 2002, 01:14:11 »
f00k off to.. (opps not alowed) (J/Kin again mods  ;))  ;D ;D

just read tombs explanition

@ Tomb i espcialy like da
Quote
*RABALLAH-MULLAH*
part  ;D


 ::)


scrolls r da best  :P  :-*

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Trigger follow 5t truck
« Reply #9 on: 22 Sep 2002, 01:17:45 »






                                            ::)








« Last Edit: 22 Sep 2002, 01:51:02 by Tomb »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Trigger follow 5t truck
« Reply #10 on: 22 Sep 2002, 01:22:20 »
::) nop they rule - da onlything dat make my misions run on very weak comps widout lag  ::)

[edit]look @ dis LCD man atcs like a 14 yrs old kid nd telsppl 2 f00k o.. (not alowed) im gonna lock him

LCD Locked :-X  ;D

LCD OUT
« Last Edit: 22 Sep 2002, 01:25:59 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Trigger follow 5t truck
« Reply #11 on: 22 Sep 2002, 01:47:38 »
LSD reopened just 2 make som more spammage  ::)

here wat tomballon ur spammage is so high dat u r a spec op - so here is my idea - u send me a beer on u  ;D

LCD LOCKED  
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

chrisb1220

  • Guest
Re:Trigger follow 5t truck
« Reply #12 on: 22 Sep 2002, 02:10:53 »
Hey Tomby! I didn't talk to you for a while! Anyway, i'll try your way and see if it works.





P.S *RABALLAH-MULLAH!* ;D

chrisb1220

  • Guest
Re:Trigger follow 5t truck
« Reply #13 on: 22 Sep 2002, 02:20:01 »
Oh, and ah could I put [ ] exec "Loop.sqs" in a regular decoration object? ???

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Trigger follow 5t truck
« Reply #14 on: 22 Sep 2002, 02:47:31 »
Sure, m8  :) put it in an empty car if ya like!  :-*