Home   Help Search Login Register  

Author Topic: I need help making my idea of a ctf  (Read 436 times)

0 Members and 1 Guest are viewing this topic.

US-NATO_Term

  • Guest
I need help making my idea of a ctf
« on: 10 Feb 2003, 01:48:22 »
Okay i know how to make the whole ctf with the flags, points, scores ect.... but what i would like to know is......

1. When some one takes the flag, how do u kame a marker show up on the map of there exact location. and when the unit moves the marker moves?

2. and how can u have numerous respawn points, and when u die select which 1 u want to respawn too?

Plz help me out, thx

Deadman

  • Guest
Re:I need help making my idea of a ctf
« Reply #1 on: 13 Feb 2003, 04:25:11 »
you could try this
#start
"name of marker" setmarkerpos [getpos player]
goto "start"

im no expert though lol

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:I need help making my idea of a ctf
« Reply #2 on: 13 Feb 2003, 08:46:50 »
That script up there would propably crash your computer because it has no delay. it would run the loop about 1000000 times in a second  :D

so what you would want to do is

#start
"name of marker" setmarkerpos [getpos player]
~0.1
goto "start"

+ you need to somehow tell the script that the player indeed has the flag. therefor insert a variable which you set true somehow.

#start
?!hasflag: goto "delay"
"name of marker" setmarkerpos [getpos player]
~0.1
goto "start"

#delay
~10
goto "start"
« Last Edit: 13 Feb 2003, 08:48:22 by Artak »
Not all is lost.