Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
distance?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: distance? (Read 452 times)
0 Members and 2 Guests are viewing this topic.
dmakatra
Members
Better known as Armsty
distance?
«
on:
10 Mar 2003, 07:24:18 »
OK. So IÂ'm working on my second official script(behold black oppers, this one is for you! ;D). Anyway, so I have the distance command ready in my script. But how do I get it activated? I want it to be activated when anybody moves in distance 5 or less to it. How do I get it activated by anyone? Please help.
Thanks in advance.
«
Last Edit: 10 Mar 2003, 07:24:55 by The real Armstrong
»
Logged
Dark Nova
Guest
Re:distance?
«
Reply #1 on:
10 Mar 2003, 07:33:32 »
if u want it in a script
#mainloop
~2
?(pl01 distance pl02) < 6 : goto "active"
goto "mainloop"
#active
<put your comand here>
goto "mainloop"
if in a trigger condistion just put
?(pl01 distance pl02) < 6
Logged
dmakatra
Members
Better known as Armsty
Re:distance?
«
Reply #2 on:
10 Mar 2003, 18:31:05 »
thx.
*TOPIC SOLVED AND LOCKED*
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
distance?
Top of page