HX3 Foren

HX3 Foren (https://hx3.de/)
-   Editing & Scripting (https://hx3.de/editing-scripting-187/)
-   -   Script Problem (https://hx3.de/editing-scripting-187/script-problem-25097/)

Gonzo1690 06.11.2015 21:49

Script Problem
 
Ich bins mal wieder ^^
Undzwar geht es diesesmal darum das ich per script Flugzeuge spawnen will. Es funktioniert einwandfrei , nur leider wird das Script pro Client einmal ausgeführt, was natürlich sehr viele Flugzeuge auf einmal spawnen lässt.

Ich habe einen Auslöser wo ich in die init Zeile das hier reingeschrieben habe:
Code:

nil = [] execVM "spawn1.sqf";
in der spawn1.sqf steht folgendes drin:
Code:

_mygrp = [getmarkerpos "spawn1", EAST, ["LIB_P39","LIB_P39","LIB_P39"],[],[],[],[],[],120] call BIS_fnc_spawnGroup;

        _wp1 = _mygrp addWaypoint [getpos player, 0]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointSpeed "NORMAL"; _wp1 setWaypointBehaviour "SAFE"; _wp1 setWaypointFormation "DIAMOND";

Also Problem ist das das script pro Client 1x ausgeführt wird. Wahrscheinlich ist es ganz einfach und ich bin einfach zu doof gerade xD

Aik 07.11.2015 05:34

Der Auslöser existiert Lokal bei jedem Client. Wird dann also auch von jedem Cient ausgelöst.

Wie sind denn die Auslösebedingungen eingestellt?

Gonzo1690 07.11.2015 10:24

Der ist einfach so eingestellt:

Größe
Fraktion: Blufor
Auslöser löst nur Einmal aus
Init Befehl



Ansonsten ist der voreingestellt.

Saint 07.11.2015 19:19

this && isServer

Drunken Officer 09.11.2015 11:57

(getPos player) als Server wird aber nicht funktionieren. Der SErver kennt keinen Player

Entweder:
this && isServer
Dann aber die Postion anders ermitteln

oder
this && local player


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:23 Uhr.

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129