OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Evan Scown on 11 Jun 2006, 22:25:00

Title: traitor
Post by: Evan Scown on 11 Jun 2006, 22:25:00
Is it possible to turn a unit against his group using a tigger?
Title: Re: traitor
Post by: Artak on 11 Jun 2006, 23:06:14
Yes.

If the unit, call him Bob, is currently in a West group, have an East unit somewhere remote on the map, that's higher ranking than Bob'.
Put in the East units init field: traitorgrp = group this
Then have in the trigger's 'on activation' field: Bob join traitorgrp

See what happens.  :)
Title: Re: traitor
Post by: Evan Scown on 11 Jun 2006, 23:10:24
Yes.....Thanks
Title: Re: traitor
Post by: srk on 12 Jun 2006, 10:41:31
You can also use addRating command. When you add enough negative rating for him, other team members will start shooting him:-

Bob addRating -1000