Vehicle Respawn Help., Tried everything nothing works!! |
Vehicle Respawn Help., Tried everything nothing works!! |
May 25 2009, 11:42
Post
#1
|
|
New Member Group: Members Posts: 3 Joined: 28-April 09 From: Ohio Member No.: 5,639 |
Im new to the scripting and have looked throught AAI and AH website and found many Vehicle respawns that dont work when i use them. I get diff errors everytime. I got a new script from a friend of mine but i get a "Missing ;" error. If anyone can help i would be most gracefull. Here is a look at the script.
// by Xeno private ["_delay","_disabled","_moved","_newveh","_startdir","_startpos","_type","_vehicle"]; if (!isServer) exitWith{}; _vehicle = _this select 0; _delay = _this select 1; _moved = false; _startpos = getpos _vehicle; _startdir = getdir _vehicle; _type = typeof _vehicle; while {true} do { sleep (_delay + random 15); _moved = (if (_vehicle distance _startpos > 5) then {true} else {false}); _empty = (if (({alive _x} count (crew _vehicle)) > 0) then {false} else {true}); _disabled = (if (damage _vehicle > 0) then {true} else {false}); if ((_disabled && _empty) || (_moved && _empty) || (_empty && !(alive _vehicle))) then { deletevehicle _vehicle; _vehicle = objNull; sleep 0.5; _vehicle = _type createvehicle _startpos; _vehicle setpos _startpos; _vehicle setdir _startdir; }; }; And here is what im putting in the int. line: Vehicle name = [this, 120] execVM ""x_scripts\x_vehirespawn2.sqf" Like i said its saying " Missing ; " -------------------- QUOTE Keep avatars and signatures within forum regulations. To keep signatures reasonably small following rules apply: * total height of your signature-image(s) must not exceed 150 pixels. * total width of your signature-image(s) must not exceed 600 pixels. * height of any image, flash animation, text or any other signature single element must not exceed 150 pixels. * total size of all files used in your signature must be no more than 150 KB. |
|
|
Lo-Fi Version | Time is now: 25th April 2024 - 17:00 |