SilverOcircle Posted December 30, 2015 Report Share Posted December 30, 2015 Hello everyone, maybe somebody can help me: I am running a dayz epoch server and want to spawn the bloodsuckers. I am using the namalsk crisis addon and run the mutants_main.fsm from the init. Everything is working fine with exception the deletevehicle section. the States in the FSM are looking like this: Spoiler 1. Start _type = _this select 0; _Pos = _this select 1; _SpawnRadius = _this select 2; _GroupMarker = _this select 3; _agent = ""; 2. True Condition 3. Spawn State "ns_bloodsucker" createUnit [_Pos, group sefik, "_agent = this;",1,"PRIVATE"]; 4. True Condition (player distance (getmarkerpos _GroupMarker) > _SpawnRadius); --------- to this point everything works great 5. End State deletevehicle _agent; true; My client.rpt is showing the following Error: Spoiler Error in expression <deletevehicle _agent; true;> Error position: <deletevehicle _agent; true;> Error deletevehicle: Type String, expected Object Any ideas how to delete the unit? Thank you vey much.. Link to comment Share on other sites More sharing options...
0 SilverOcircle Posted January 1, 2016 Author Report Share Posted January 1, 2016 can somebody explain the difference between _unitbs = "ns_bloodsucker" createUnit [_Pos, group sefik,"",1,"PRIVATE"]; and_unitbs = group sefik createUnit ["ns_bloodsucker", _Pos, [], 0, "CAN COLLIDE"]; the reason is when i spawn the bloodsucker with the first code then i get the expression error: Error in expression <deletevehicle _unitbs; true;> Error position: <_unitbs; true;> Error Undefined variable in expression: _unitbs when i spawn it with the second code then i m able to delete them without any errors but the AI is standing around and doing nothing. Link to comment Share on other sites More sharing options...
Question
SilverOcircle
Hello everyone,
maybe somebody can help me:
I am running a dayz epoch server and want to spawn the bloodsuckers.
I am using the namalsk crisis addon and run the mutants_main.fsm from the init.
Everything is working fine with exception the deletevehicle section.
the States in the FSM are looking like this:
1. Start
_type = _this select 0;
_Pos = _this select 1;
_SpawnRadius = _this select 2;
_GroupMarker = _this select 3;
_agent = "";
2. True Condition
3. Spawn State
"ns_bloodsucker" createUnit [_Pos, group sefik, "_agent = this;",1,"PRIVATE"];
4. True Condition
(player distance (getmarkerpos _GroupMarker) > _SpawnRadius);
--------- to this point everything works great
5. End State
deletevehicle _agent;
true;
My client.rpt is showing the following Error:
Error in expression <deletevehicle _agent;
true;>
Error position: <deletevehicle _agent;
true;>
Error deletevehicle: Type String, expected Object
Any ideas how to delete the unit?
Thank you vey much..
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now